[02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:55]accept exits with 8 [05:01:55]New connection [05:01:55]New thread 3066772836 created [05:01:55]Thread 3066629476 joined [05:01:55]Waiting for new connection... [05:01:55] Sock 8.Parse request [05:01:55]Sock 8.Check first char [05:01:55]Sock 8.First char is OK [05:01:55]request: POST /json_proto HTTP/1.0 [05:01:55]Method: POST [05:01:55]URL: /json_proto [05:01:55]Method is POST - this is cgi request [05:01:55]url: /json_proto [05:01:55]query_string will be loaded in cgi processing [05:01:55]execute_cgi json_proto POST (null) [05:01:55]execute_cgi path=json_proto method=POST [05:01:55]POST find Content-Length [05:01:55]Host: 172.17.56.68:8080 [05:01:55]Content-Length: 1059 [05:01:55]Content-Type: application/json [05:01:55] [05:01:55]POST finish read [05:01:55]Found Content-Length = 1059 [05:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4479", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 253.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:01:55]execute_script... [05:01: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 : (3)4479", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 253.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:01:55]POST & json_proto [05:01:55]process_json_proto [05:01:55]json parsed OK: [05:01:55]protocol is kg_v1.0 [05:01:55]action value=close_receipt [05:01:55]process_action close_receipt [05:01:55]cmd_close_receipt [05:01:55]MH_GetDate [05:01:55]Write to MH i2c: F0 00 00 57 0A 50 [05:01:55]Write i2c OK [05:01:55]MH_I2C_Read... [05:01:55]Read from MH i2c: F0 [05:01:55]MH_I2C_Read... [05:01:55]Read from MH i2c: F0 09 00 [05:01:55]MH_I2C_Read... [05:01:55]Read from MH i2c: F0 09 00 57 0A 00 C6 42 61 66 3A 8F 60 66 B7 [05:01:55]GetLastDocTimeStamp 1717636943 [05:01:55]current date 1717650118 [05:01:55]FM_GetShiftState [05:01:55]SAM_PROTO_GetShiftState [05:01:55]wFMCommunicate request_size=4 [05:01:55]MH_SAM_APDU [05:01:55]CAPDU: 80 13 01 00 [05:01:55]Write to MH i2c: E2 08 00 58 0A 80 13 01 00 00 00 00 00 DF [05:01:55]Write i2c OK [05:01:55]MH_I2C_Read... [05:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:55]Read from MH i2c: E2 [05:01:55]MH_I2C_Read... [05:01:55]Read from MH i2c: E2 0E 00 [05:01:55]MH_I2C_Read... [05:01:55]Read from MH i2c: E2 0E 00 58 0A 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 98 [05:01:55]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [05:01:55]wFMCommunicate OK [05:01:55]SAM_PROTO_GetShiftState done [05:01:55]FM_GetShiftState done [05:01:55]opened in 1717632745 [05:01:55]opened+sec_in_day 1717719145 [05:01:55]quantity*price = 14000 [05:01:55]sum+1 = 14001 [05:01:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 253.00 НСП 1% : 2.24 НДС 12% : 26.87 Наличными: 0.00 Безнал.: 253.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 2 06.06.2024 05:01 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: О! деньги ФМ: 0000000000959360 ФД: 4227 ФПД: 62031873792130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T050158&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4227&fm=62031873792130&tin=02508201610067®Number=0000000000145775&sum=25300 0 [05:01:56]StoreToDocumentArchive [05:01:56]shift 85 fd 4227 [05:01:56]save to /storage/0085/doc_00004227 [05:01:56]save last doc name /storage/0085/doc_00004227 to /storage/kkm_last_doc_name [05:01:56]save OK [05:01:56]Clear old archive folders... [05:01:56]ProcessDocumentItem done err = 0, tmpTLVsize=381 [05:01:56]tlvbuf is 019A0DB0 [05:01:56]SAM_PROTO_ClearQueue [05:01:56]wFMCommunicate request_size=4 [05:01:56]MH_SAM_APDU [05:01:56]CAPDU: 80 09 00 00 [05:01:56]Write to MH i2c: E2 08 00 65 0A 80 09 00 00 00 00 00 00 E1 [05:01:56]Write i2c OK [05:01:56]MH_I2C_Read... [05:01:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:01:56]Read from MH i2c: E2 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 03 00 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [05:01:56]RAPDU: 90 00 [05:01:56]wFMCommunicate OK [05:01:56]SAM_PROTO_ClearQueue done [05:01:56]KKMCreateOFDPacket [05:01:56]OFDProtocolAddRootSTLVToBuf [05:01:56]FM_MakeSignedData [05:01:56]FM_MakeSignedData [05:01:56]SAM_PROTO_SignData [05:01:56]wFMCommunicate request_size=4 [05:01:56]MH_SAM_APDU [05:01:56]CAPDU: 80 0D 01 02 [05:01:56]Write to MH i2c: E2 08 00 66 0A 80 0D 01 02 00 00 00 00 E9 [05:01:56]Write i2c OK [05:01:56]MH_I2C_Read... [05:01:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:01:56]Read from MH i2c: E2 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 03 00 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [05:01:56]RAPDU: 90 00 [05:01:56]wFMCommunicate OK [05:01:56]wFMCommunicate request_size=255 [05:01:56]MH_SAM_APDU [05:01:56]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 [05:01:56]Write to MH i2c: E2 02 01 67 0A 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 77 [05:01:56]Write i2c OK [05:01:56]MH_I2C_Read... [05:01:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:56]Read from MH i2c: E2 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 03 00 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [05:01:56]RAPDU: 90 00 [05:01:56]wFMCommunicate OK [05:01:56]wFMCommunicate request_size=140 [05:01:56]MH_SAM_APDU [05:01:56]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C6 42 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 83 10 00 00 35 04 06 00 38 6A EB CD 58 82 [05:01:56]Write to MH i2c: E2 8F 00 68 0A 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C6 42 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 83 10 00 00 35 04 06 00 38 6A EB CD 58 82 00 00 D7 [05:01:56]Write i2c OK [05:01:56]MH_I2C_Read... [05:01:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:56]Read from MH i2c: E2 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 03 00 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [05:01:56]RAPDU: 90 00 [05:01:56]wFMCommunicate OK [05:01:56]wFMCommunicate request_size=4 [05:01:56]MH_SAM_APDU [05:01:56]CAPDU: 80 0D 03 02 [05:01:56]Write to MH i2c: E2 08 00 69 0A 80 0D 03 02 00 00 00 00 EE [05:01:56]Write i2c OK [05:01:56]MH_I2C_Read... [05:01:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:01:56]Read from MH i2c: E2 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 0B 00 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 0B 00 69 0A 00 63 42 6A 54 9B C3 1B 44 90 00 0F [05:01:56]RAPDU: 63 42 6A 54 9B C3 1B 44 90 00 [05:01:56]wFMCommunicate OK [05:01:56]SAM_PROTO_SignData done [05:01:56]FM_MakeSignedData done [05:01:56]CreateOFDProtocolMessage [05:01:56]wFMCommunicate request_size=4 [05:01:56]MH_SAM_APDU [05:01:56]CAPDU: 80 11 00 00 [05:01:56]Write to MH i2c: E2 08 00 6A 0A 80 11 00 00 00 00 00 00 EE [05:01:56]Write i2c OK [05:01:56]MH_I2C_Read... [05:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:56]Read from MH i2c: E2 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 17 00 [05:01:56]MH_I2C_Read... [05:01:56]Read from MH i2c: E2 17 00 6A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 41 [05:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [05:01:56]wFMCommunicate OK [05:01:56]CreateOFDProtocolMessage done [05:01:56]OFDSenderStorePacket 4227 [05:01:56]StoreOFDPacket docnum=4227 [05:01:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 91 01 00 00 48 7C 89 01 45 E6 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C6 42 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 83 10 00 00 35 04 06 00 38 6A EB CD 58 82 63 42 6A 54 9B C3 1B 44 [05:01:56]CheckFolder [05:01:56]dirname=/storage/ofd_packets [05:01:56]CheckFolder done [05:01:56]ProducePacketName [05:01:56]name=ofd_packets/00004227 [05:01:56]NVStorageSaveData ofd_packets/00004227 [05:01:56]File name is /storage/ofd_packets/00004227 [05:01:56]Write 431 bytes [05:01:56]NVStorageSaveData done [05:01:56]OFDSenderStorePacket done [05:01:56]KKMCreateOFDPacket done [05:01:56]NVStorageSaveData kkm_last_timestamp [05:01:56]File name is /storage/kkm_last_timestamp [05:01:56]Write 4 bytes [05:01:56]NVStorageSaveData done [05:01:57]ExternCall_PrintAddStr [05:01:57]wPrintStart [05:01:57]Write to MH i2c: 01 00 00 6B 0A 75 [05:01:57]OFD Sender: Processing packet 4227 [packets to send 2, broken 1] [05:01:57]ProducePacketName [05:01:57]name=ofd_packets/00004227 [05:01:57]OFD Sender: To server: pG, [05:01:57]CommunicateWithHost lk.salyk.kg:30040 [05:01:57]Write i2c OK [05:01:57]ConnectInit lk.salyk.kg [05:01:57]MH_I2C_Read... [05:01:57]Read from MH i2c: 01 [05:01:57]MH_I2C_Read... [05:01:57]Read from MH i2c: 01 07 00 [05:01:57]MH_I2C_Read... [05:01:57]Read from MH i2c: 01 07 00 6B 0A 00 00 00 00 00 FF 0F 8A [05:01:57]RasterBufferAndPrint [05:01:57]line Счет N : (3)4479 [05:01:57]line ИНН: 02508201610067 [05:01:57]line Контрольно-Кассовый Чек [05:01:57]line ПРОДАЖА [05:01:57]line Товар: 48743570 [05:01:57]line Сигареты Winston XStyle Blue [05:01:57]line 1.000 * 140.00 [05:01:57]line = 140.00 [05:01:57]line НДС 12% НСП 1% [05:01:57]line > о реализуемом товаре [05:01:57]line Товар: 5449000054227 [05:01:57]line Напиток Кока-Кола 1л [05:01:57]line 1.000 * 113.00 [05:01:57]line = 113.00 [05:01:57]line НДС 12% НСП 1% [05:01:57]line > о реализуемом товаре [05:01:57]line ИТОГО: 253.00 [05:01:57]line НСП 1% : 2.24 [05:01:57]line НДС 12% : 26.87 [05:01:57]line Наличными: 0.00 [05:01:57]line Безнал.: 253.00 [05:01:57]line Место: АЗС № 116 "Партнер Нефть" [05:01:57]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [05:01:57]line СНО: Общий режим [05:01:57]line Чек 2 06.06.2024 05:01 [05:01:57]line Смена: 85 ФФД: 1.0 [05:01:57]line ЗНМ: 0300000233 [05:01:57]line РНМ: 0000000000145775 [05:01:57]line Версия ККМ: v1.0 [05:01:57]line Платежная система: О! деньги [05:01:57]line ФМ: 0000000000959360 [05:01:57]line ФД: 4227 [05:01:57]line ФПД: 62031873792130 [05:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T050158&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4227&fm=62031873792130&tin=02508201610067®Number=0000000000145775&sum=25300 [05:01:57]line 0 [05:01:57]written 0, free lines is 4095 [05:01:57]Connected sock=10 [05:01:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 91 01 00 00 48 7C 89 01 45 E6 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C6 42 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 83 10 00 00 35 04 06 00 38 6A EB CD 58 82 63 42 6A 54 9B C3 1B 44 [05:01:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 4D 3C 47 00 D1 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 83 10 00 00 F4 03 04 00 C7 EE 60 66 B6 04 01 00 00 31 20 D4 30 1E 32 49 56 [05:01:57]CommunicateWithHost err = 0 [05:01:57]CheckOFDResponse [05:01:57]1017 (14) - 77093643461234 [05:01:57]1041 (16) - 0000000000959360 [05:01:57]1040 (4) - 4227 [05:01:57]1012 (4) - 05.06.2024 23:03 [05:01:57]1206 (1) - 0 [05:01:57]OFD Sender: Remove packet 4227 [05:01:57]ProducePacketName [05:01:57]name=ofd_packets/00004227 [05:01:57]NVStorageDeleteData [05:01:57]Write to MH i2c: 01 00 00 9B 0A A5 [05:01:57]Write i2c OK [05:01:57]MH_I2C_Read... [05:01:57]Read from MH i2c: 01 [05:01:57]MH_I2C_Read... [05:01:57]Read from MH i2c: 01 07 00 [05:01:57]MH_I2C_Read... [05:01:57]Read from MH i2c: 01 07 00 9B 0A 00 00 00 00 00 33 0C EB [05:01:57]RasterBufferAndPrint [05:01:57]line [05:01:57]line [05:01:57]line [05:01:57]line [05:01:57]line [05:01:57]written 0, free lines is 3129 [05:01:57]MH_Cut [05:01:57]Write to MH i2c: D1 01 00 A2 0A 01 7E [05:01:57]Write i2c OK [05:01:57]MH_I2C_Read... [05:01:57]Read from MH i2c: D1 [05:01:57]MH_I2C_Read... [05:01:57]Read from MH i2c: D1 01 00 [05:01:57]MH_I2C_Read... [05:01:57]Read from MH i2c: D1 01 00 A2 0A 00 7D [05:01:57]Write to MH i2c: 01 00 00 A3 0A AD [05:01:57]Write i2c OK [05:01:57]MH_I2C_Read... [05:01:57]OFD Sender: No OFD packet to send [05:01:58]*** Cut start [05:01:58]*** Partial cut [05:01:58]*** CUTSNS_PIN = 1 [05:01:58]*** CUTSNS_PIN = 0 [05:01:59]*** Brake cut motor [05:01:59]Read from MH i2c: 01 [05:01:59]MH_I2C_Read... [05:01:59]*** Stop cut motor [05:01:59]*** Cut end [05:01:59]Read from MH i2c: 01 07 00 [05:01:59]MH_I2C_Read... [05:01:59]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [05:01:59]process_action close_receipt done [05:01:59]requested_data is exist [05:01:59]produce_requested_data [05:01:59]requested_item fm.sn is exist - process it [05:01:59]wFMCommunicate request_size=4 [05:01:59]MH_SAM_APDU [05:01:59]CAPDU: 80 11 00 00 [05:01:59]Write to MH i2c: E2 08 00 A4 0A 80 11 00 00 00 00 00 00 28 [05:01:59]Write i2c OK [05:01:59]MH_I2C_Read... [05:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:59]Read from MH i2c: E2 [05:01:59]MH_I2C_Read... [05:01:59]Read from MH i2c: E2 17 00 [05:01:59]MH_I2C_Read... [05:01:59]Read from MH i2c: E2 17 00 A4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 7B [05:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [05:01:59]wFMCommunicate OK [05:01:59]requested_item fd.num is exist - process it [05:01:59]SAM_PROTO_GetFieldsCounters [05:01:59]wFMCommunicate request_size=4 [05:01:59]MH_SAM_APDU [05:01:59]CAPDU: 80 13 00 00 [05:01:59]Write to MH i2c: E2 08 00 A5 0A 80 13 00 00 00 00 00 00 2B [05:01:59]Write i2c OK [05:01:59]MH_I2C_Read... [05:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:01:59]Read from MH i2c: E2 [05:01:59]MH_I2C_Read... [05:01:59]Read from MH i2c: E2 62 00 [05:01:59]MH_I2C_Read... [05:01:59]Read from MH i2c: E2 62 00 A5 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 83 10 00 00 0E 04 04 00 55 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 3E [05:01:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 83 10 00 00 0E 04 04 00 55 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 [05:01:59]wFMCommunicate OK [05:01:59]SAM_PROTO_GetFieldsCounters done [05:01:59]requested_item shift.num is exist - process it [05:01:59]requested_item shift.opened is exist - process it [05:01:59]req_shift_opened [05:01:59]FM_GetShiftState [05:01:59]SAM_PROTO_GetShiftState [05:01:59]wFMCommunicate request_size=4 [05:01:59]MH_SAM_APDU [05:01:59]CAPDU: 80 13 01 00 [05:01:59]Write to MH i2c: E2 08 00 A6 0A 80 13 01 00 00 00 00 00 2D [05:01:59]Write i2c OK [05:01:59]MH_I2C_Read... [05:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:59]Read from MH i2c: E2 [05:01:59]MH_I2C_Read... [05:01:59]Read from MH i2c: E2 0E 00 [05:01:59]MH_I2C_Read... [05:01:59]Read from MH i2c: E2 0E 00 A6 0A 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 E6 [05:01:59]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [05:01:59]wFMCommunicate OK [05:01:59]SAM_PROTO_GetShiftState done [05:01:59]FM_GetShiftState done [05:01:59]req_shift_opened done [05:01:59]requested_item shift.open_date is exist - process it [05:01:59]req_shift_open_date [05:01:59]req_shift_open_date done [05:01:59]produce_requested_data done [05:01:59]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4227,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [05:01:59]process_action_free close_receipt [05:01:59]json_value_free [05:01:59]json_value_free done [05:01:59]process_json_proto returns [05:01:59]Send response to host [05:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4227,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [05:01:59]free response buf [05:01:59]execute_script done [05:01:59]execute_script returns [05:01:59]free content buf [05:01:59]Sock 8.Close socket [05:01:59]Sock 8.Thread stoped [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:14]accept exits with 9 [05:19:14]New connection [05:19:14]New thread 3066629476 created [05:19:14]Thread 3066772836 joined [05:19:14]Waiting for new connection... [05:19:14] Sock 9.Parse request [05:19:14]Sock 9.Check first char [05:19:14]Sock 9.First char is OK [05:19:14]request: POST /json_proto HTTP/1.0 [05:19:14]Method: POST [05:19:14]URL: /json_proto [05:19:14]Method is POST - this is cgi request [05:19:14]url: /json_proto [05:19:14]query_string will be loaded in cgi processing [05:19:14]execute_cgi json_proto POST (null) [05:19:14]execute_cgi path=json_proto method=POST [05:19:14]POST find Content-Length [05:19:14]Host: 172.17.56.68:8080 [05:19:14]Content-Length: 657 [05:19:14]Content-Type: application/json [05:19:14] [05:19:14]POST finish read [05:19:14]Found Content-Length = 657 [05:19:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4480", "tax_sys" : 0, "items" : [ { "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:19:14]execute_script... [05:19: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 : (3)4480", "tax_sys" : 0, "items" : [ { "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:19:14]POST & json_proto [05:19:14]process_json_proto [05:19:14]json parsed OK: [05:19:14]protocol is kg_v1.0 [05:19:14]action value=close_receipt [05:19:14]process_action close_receipt [05:19:14]cmd_close_receipt [05:19:14]MH_GetDate [05:19:14]Write to MH i2c: F0 00 00 A7 0A A0 [05:19:14]Write i2c OK [05:19:14]MH_I2C_Read... [05:19:14]Read from MH i2c: F0 [05:19:14]MH_I2C_Read... [05:19:14]Read from MH i2c: F0 09 00 [05:19:14]MH_I2C_Read... [05:19:14]Read from MH i2c: F0 09 00 A7 0A 00 D6 46 61 66 3A 8F 60 66 1B [05:19:14]GetLastDocTimeStamp 1717650118 [05:19:14]current date 1717651158 [05:19:14]FM_GetShiftState [05:19:14]SAM_PROTO_GetShiftState [05:19:14]wFMCommunicate request_size=4 [05:19:14]MH_SAM_APDU [05:19:14]CAPDU: 80 13 01 00 [05:19:14]Write to MH i2c: E2 08 00 A8 0A 80 13 01 00 00 00 00 00 2F [05:19:14]Write i2c OK [05:19:14]MH_I2C_Read... [05:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:19:14]Read from MH i2c: E2 [05:19:14]MH_I2C_Read... [05:19:14]Read from MH i2c: E2 0E 00 [05:19:14]MH_I2C_Read... [05:19:14]Read from MH i2c: E2 0E 00 A8 0A 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 E8 [05:19:14]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [05:19:14]wFMCommunicate OK [05:19:14]SAM_PROTO_GetShiftState done [05:19:14]FM_GetShiftState done [05:19:14]opened in 1717632745 [05:19:14]opened+sec_in_day 1717719145 [05:19:14]quantity*price = 5100 [05:19:14]sum+1 = 5101 [05:19:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 НСП 1% : 0.45 НДС 12% : 5.42 Наличными: 51.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 3 06.06.2024 05:19 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4228 ФПД: 71529946397692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T051918&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4228&fm=71529946397692&tin=02508201610067®Number=0000000000145775&sum=5100 0 [05:19:16]StoreToDocumentArchive [05:19:16]shift 85 fd 4228 [05:19:16]save to /storage/0085/doc_00004228 [05:19:16]save last doc name /storage/0085/doc_00004228 to /storage/kkm_last_doc_name [05:19:16]save OK [05:19:16]Clear old archive folders... [05:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=286 [05:19:16]tlvbuf is 01987E20 [05:19:16]SAM_PROTO_ClearQueue [05:19:16]wFMCommunicate request_size=4 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 09 00 00 [05:19:16]Write to MH i2c: E2 08 00 B5 0A 80 09 00 00 00 00 00 00 31 [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 B5 0A 00 90 00 33 [05:19:16]RAPDU: 90 00 [05:19:16]wFMCommunicate OK [05:19:16]SAM_PROTO_ClearQueue done [05:19:16]KKMCreateOFDPacket [05:19:16]OFDProtocolAddRootSTLVToBuf [05:19:16]FM_MakeSignedData [05:19:16]FM_MakeSignedData [05:19:16]SAM_PROTO_SignData [05:19:16]wFMCommunicate request_size=4 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 0D 01 02 [05:19:16]Write to MH i2c: E2 08 00 B6 0A 80 0D 01 02 00 00 00 00 39 [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 B6 0A 00 90 00 34 [05:19:16]RAPDU: 90 00 [05:19:16]wFMCommunicate OK [05:19:16]wFMCommunicate request_size=255 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 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 D6 46 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 [05:19:16]Write to MH i2c: E2 02 01 B7 0A 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 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 D6 46 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 00 00 75 [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 B7 0A 00 90 00 35 [05:19:16]RAPDU: 90 00 [05:19:16]wFMCommunicate OK [05:19:16]wFMCommunicate request_size=45 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 0D 02 02 28 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 84 10 00 00 35 04 06 00 41 0E 5D 0B BB FC [05:19:16]Write to MH i2c: E2 30 00 B8 0A 80 0D 02 02 28 00 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 84 10 00 00 35 04 06 00 41 0E 5D 0B BB FC 00 00 96 [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [05:19:16]RAPDU: 90 00 [05:19:16]wFMCommunicate OK [05:19:16]wFMCommunicate request_size=4 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 0D 03 02 [05:19:16]Write to MH i2c: E2 08 00 B9 0A 80 0D 03 02 00 00 00 00 3E [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 0B 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 0B 00 B9 0A 00 F6 B0 30 B5 B9 B1 B1 56 90 00 3B [05:19:16]RAPDU: F6 B0 30 B5 B9 B1 B1 56 90 00 [05:19:16]wFMCommunicate OK [05:19:16]SAM_PROTO_SignData done [05:19:16]FM_MakeSignedData done [05:19:16]CreateOFDProtocolMessage [05:19:16]wFMCommunicate request_size=4 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 11 00 00 [05:19:16]Write to MH i2c: E2 08 00 BA 0A 80 11 00 00 00 00 00 00 3E [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 17 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 17 00 BA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 91 [05:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [05:19:16]wFMCommunicate OK [05:19:16]CreateOFDProtocolMessage done [05:19:16]OFDSenderStorePacket 4228 [05:19:16]StoreOFDPacket docnum=4228 [05:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 32 01 00 00 63 CB 2A 01 85 9F 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 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 D6 46 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 84 10 00 00 35 04 06 00 41 0E 5D 0B BB FC F6 B0 30 B5 B9 B1 B1 56 [05:19:16]CheckFolder [05:19:16]dirname=/storage/ofd_packets [05:19:16]CheckFolder done [05:19:16]ProducePacketName [05:19:16]name=ofd_packets/00004228 [05:19:16]NVStorageSaveData ofd_packets/00004228 [05:19:16]File name is /storage/ofd_packets/00004228 [05:19:16]Write 336 bytes [05:19:16]NVStorageSaveData done [05:19:16]OFDSenderStorePacket done [05:19:16]KKMCreateOFDPacket done [05:19:16]NVStorageSaveData kkm_last_timestamp [05:19:16]File name is /storage/kkm_last_timestamp [05:19:16]Write 4 bytes [05:19:16]NVStorageSaveData done [05:19:16]ExternCall_PrintAddStr [05:19:16]wPrintStart [05:19:16]Write to MH i2c: 01 00 00 BB 0A C5 [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: 01 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: 01 07 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: 01 07 00 BB 0A 00 00 00 00 00 FF 0F DA [05:19:16]RasterBufferAndPrint [05:19:16]line Счет N : (3)4480 [05:19:16]line ИНН: 02508201610067 [05:19:16]line Контрольно-Кассовый Чек [05:19:16]line ПРОДАЖА [05:19:16]line Товар: 4700041420152 [05:19:16]line Салфетки влажн BEST GOLD 20шт [05:19:16]line 1.000 * 51.00 [05:19:16]line = 51.00 [05:19:16]line НДС 12% НСП 1% [05:19:16]line > о реализуемом товаре [05:19:16]line ИТОГО: 51.00 [05:19:16]line НСП 1% : 0.45 [05:19:16]line НДС 12% : 5.42 [05:19:16]line Наличными: 51.00 [05:19:16]line Безнал.: 0.00 [05:19:16]line Место: АЗС № 116 "Партнер Нефть" [05:19:16]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [05:19:16]line СНО: Общий режим [05:19:16]line Чек 3 06.06.2024 05:19 [05:19:16]line Смена: 85 ФФД: 1.0 [05:19:16]line ЗНМ: 0300000233 [05:19:16]line РНМ: 0000000000145775 [05:19:16]line Версия ККМ: v1.0 [05:19:16]line ФМ: 0000000000959360 [05:19:16]line ФД: 4228 [05:19:16]line ФПД: 71529946397692 [05:19:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T051918&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4228&fm=71529946397692&tin=02508201610067®Number=0000000000145775&sum=5100 [05:19:16]line 0 [05:19:16]OFD Sender: Processing packet 4228 [packets to send 2, broken 1] [05:19:16]ProducePacketName [05:19:16]name=ofd_packets/00004228 [05:19:16]OFD Sender: To server: pG, [05:19:16]CommunicateWithHost lk.salyk.kg:30040 [05:19:16]ConnectInit lk.salyk.kg [05:19:16]written 0, free lines is 4095 [05:19:16]Connected sock=10 [05:19:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 32 01 00 00 63 CB 2A 01 85 9F 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 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 D6 46 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 84 10 00 00 35 04 06 00 41 0E 5D 0B BB FC F6 B0 30 B5 B9 B1 B1 56 [05:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 2A 29 47 00 7F 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 84 10 00 00 F4 03 04 00 D6 F2 60 66 B6 04 01 00 00 FA F2 34 19 C1 6B 33 0D [05:19:17]CommunicateWithHost err = 0 [05:19:17]CheckOFDResponse [05:19:17]1017 (14) - 77093643461234 [05:19:17]1041 (16) - 0000000000959360 [05:19:17]1040 (4) - 4228 [05:19:17]1012 (4) - 05.06.2024 23:20 [05:19:17]1206 (1) - 0 [05:19:17]OFD Sender: Remove packet 4228 [05:19:17]ProducePacketName [05:19:17]name=ofd_packets/00004228 [05:19:17]NVStorageDeleteData [05:19:17]Write to MH i2c: 01 00 00 E4 0A EE [05:19:17]Write i2c OK [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: 01 [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: 01 07 00 [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: 01 07 00 E4 0A 00 00 00 00 00 AE 0C AF [05:19:17]RasterBufferAndPrint [05:19:17]line [05:19:17]line [05:19:17]line [05:19:17]line [05:19:17]line [05:19:17]written 0, free lines is 3249 [05:19:17]MH_Cut [05:19:17]Write to MH i2c: D1 01 00 EB 0A 01 C7 [05:19:17]Write i2c OK [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: D1 [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: D1 01 00 [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: D1 01 00 EB 0A 00 C6 [05:19:17]Write to MH i2c: 01 00 00 EC 0A F6 [05:19:17]Write i2c OK [05:19:17]MH_I2C_Read... [05:19:17]OFD Sender: No OFD packet to send [05:19:18]*** Cut start [05:19:18]*** Partial cut [05:19:18]*** CUTSNS_PIN = 1 [05:19:18]*** CUTSNS_PIN = 0 [05:19:18]*** Brake cut motor [05:19:18]Read from MH i2c: 01 [05:19:18]MH_I2C_Read... [05:19:18]*** Stop cut motor [05:19:18]*** Cut end [05:19:18]Read from MH i2c: 01 07 00 [05:19:18]MH_I2C_Read... [05:19:18]Read from MH i2c: 01 07 00 EC 0A 00 00 00 00 00 FF 0F 0B [05:19:18]process_action close_receipt done [05:19:18]requested_data is exist [05:19:18]produce_requested_data [05:19:18]requested_item fm.sn is exist - process it [05:19:18]wFMCommunicate request_size=4 [05:19:18]MH_SAM_APDU [05:19:18]CAPDU: 80 11 00 00 [05:19:18]Write to MH i2c: E2 08 00 ED 0A 80 11 00 00 00 00 00 00 71 [05:19:18]Write i2c OK [05:19:18]MH_I2C_Read... [05:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:19:18]Read from MH i2c: E2 [05:19:18]MH_I2C_Read... [05:19:18]Read from MH i2c: E2 17 00 [05:19:18]MH_I2C_Read... [05:19:18]Read from MH i2c: E2 17 00 ED 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 C4 [05:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [05:19:18]wFMCommunicate OK [05:19:18]requested_item fd.num is exist - process it [05:19:18]SAM_PROTO_GetFieldsCounters [05:19:18]wFMCommunicate request_size=4 [05:19:18]MH_SAM_APDU [05:19:18]CAPDU: 80 13 00 00 [05:19:18]Write to MH i2c: E2 08 00 EE 0A 80 13 00 00 00 00 00 00 74 [05:19:18]Write i2c OK [05:19:18]MH_I2C_Read... [05:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:19:19]Read from MH i2c: E2 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 62 00 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 62 00 EE 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 84 10 00 00 0E 04 04 00 55 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 8B [05:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 84 10 00 00 0E 04 04 00 55 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 [05:19:19]wFMCommunicate OK [05:19:19]SAM_PROTO_GetFieldsCounters done [05:19:19]requested_item shift.num is exist - process it [05:19:19]requested_item shift.opened is exist - process it [05:19:19]req_shift_opened [05:19:19]FM_GetShiftState [05:19:19]SAM_PROTO_GetShiftState [05:19:19]wFMCommunicate request_size=4 [05:19:19]MH_SAM_APDU [05:19:19]CAPDU: 80 13 01 00 [05:19:19]Write to MH i2c: E2 08 00 EF 0A 80 13 01 00 00 00 00 00 76 [05:19:19]Write i2c OK [05:19:19]MH_I2C_Read... [05:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:19:19]Read from MH i2c: E2 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 0E 00 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 0E 00 EF 0A 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 2F [05:19:19]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [05:19:19]wFMCommunicate OK [05:19:19]SAM_PROTO_GetShiftState done [05:19:19]FM_GetShiftState done [05:19:19]req_shift_opened done [05:19:19]requested_item shift.open_date is exist - process it [05:19:19]req_shift_open_date [05:19:19]req_shift_open_date done [05:19:19]produce_requested_data done [05:19:19]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4228,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [05:19:19]process_action_free close_receipt [05:19:19]json_value_free [05:19:19]json_value_free done [05:19:19]process_json_proto returns [05:19:19]Send response to host [05:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4228,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [05:19:19]free response buf [05:19:19]execute_script done [05:19:19]execute_script returns [05:19:19]free content buf [05:19:19]Sock 9.Close socket [05:19:19]Sock 9.Thread stoped [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:21]accept exits with 8 [07:06:21]New connection [07:06:21]New thread 3066772836 created [07:06:21]Thread 3066629476 joined [07:06:21]Waiting for new connection... [07:06:21] Sock 8.Parse request [07:06:21]Sock 8.Check first char [07:06:21]Sock 8.First char is OK [07:06:21]request: POST /json_proto HTTP/1.0 [07:06:21]Method: POST [07:06:21]URL: /json_proto [07:06:21]Method is POST - this is cgi request [07:06:21]url: /json_proto [07:06:21]query_string will be loaded in cgi processing [07:06:21]execute_cgi json_proto POST (null) [07:06:21]execute_cgi path=json_proto method=POST [07:06:21]POST find Content-Length [07:06:21]Host: 172.17.56.68:8080 [07:06:21]Content-Length: 694 [07:06:21]Content-Type: application/json [07:06:21] [07:06:21]POST finish read [07:06:21]Found Content-Length = 694 [07:06:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4481", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:21]execute_script... [07:06:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4481", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:21]POST & json_proto [07:06:21]process_json_proto [07:06:21]json parsed OK: [07:06:21]protocol is kg_v1.0 [07:06:21]action value=close_receipt [07:06:21]process_action close_receipt [07:06:21]cmd_close_receipt [07:06:21]MH_GetDate [07:06:21]Write to MH i2c: F0 00 00 F0 0A E9 [07:06:21]Write i2c OK [07:06:21]MH_I2C_Read... [07:06:21]Read from MH i2c: F0 [07:06:21]MH_I2C_Read... [07:06:21]Read from MH i2c: F0 09 00 [07:06:21]MH_I2C_Read... [07:06:21]Read from MH i2c: F0 09 00 F0 0A 00 F1 5F 61 66 3A 8F 60 66 98 [07:06:21]GetLastDocTimeStamp 1717651158 [07:06:21]current date 1717657585 [07:06:21]FM_GetShiftState [07:06:21]SAM_PROTO_GetShiftState [07:06:21]wFMCommunicate request_size=4 [07:06:21]MH_SAM_APDU [07:06:21]CAPDU: 80 13 01 00 [07:06:21]Write to MH i2c: E2 08 00 F1 0A 80 13 01 00 00 00 00 00 78 [07:06:21]Write i2c OK [07:06:21]MH_I2C_Read... [07:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:21]Read from MH i2c: E2 [07:06:21]MH_I2C_Read... [07:06:21]Read from MH i2c: E2 0E 00 [07:06:21]MH_I2C_Read... [07:06:21]Read from MH i2c: E2 0E 00 F1 0A 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 31 [07:06:21]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:06:21]wFMCommunicate OK [07:06:21]SAM_PROTO_GetShiftState done [07:06:21]FM_GetShiftState done [07:06:21]opened in 1717632745 [07:06:21]opened+sec_in_day 1717719145 [07:06:21]quantity*price = 8500 [07:06:21]sum+1 = 8501 [07:06:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 4 06.06.2024 07:06 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4229 ФПД: 136463346901197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T070625&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4229&fm=136463346901197&tin=02508201610067®Number=0000000000145775&sum=8500 0 [07:06:22]StoreToDocumentArchive [07:06:22]shift 85 fd 4229 [07:06:22]save to /storage/0085/doc_00004229 [07:06:22]save last doc name /storage/0085/doc_00004229 to /storage/kkm_last_doc_name [07:06:22]save OK [07:06:22]Clear old archive folders... [07:06:22]ProcessDocumentItem done err = 0, tmpTLVsize=299 [07:06:22]tlvbuf is 01969040 [07:06:22]SAM_PROTO_ClearQueue [07:06:22]wFMCommunicate request_size=4 [07:06:22]MH_SAM_APDU [07:06:22]CAPDU: 80 09 00 00 [07:06:22]Write to MH i2c: E2 08 00 FE 0A 80 09 00 00 00 00 00 00 7A [07:06:22]Write i2c OK [07:06:22]MH_I2C_Read... [07:06:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:22]Read from MH i2c: E2 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 03 00 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 03 00 FE 0A 00 90 00 7C [07:06:22]RAPDU: 90 00 [07:06:22]wFMCommunicate OK [07:06:22]SAM_PROTO_ClearQueue done [07:06:22]KKMCreateOFDPacket [07:06:22]OFDProtocolAddRootSTLVToBuf [07:06:22]FM_MakeSignedData [07:06:22]FM_MakeSignedData [07:06:22]SAM_PROTO_SignData [07:06:22]wFMCommunicate request_size=4 [07:06:22]MH_SAM_APDU [07:06:22]CAPDU: 80 0D 01 02 [07:06:22]Write to MH i2c: E2 08 00 FF 0A 80 0D 01 02 00 00 00 00 82 [07:06:22]Write i2c OK [07:06:22]MH_I2C_Read... [07:06:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:22]Read from MH i2c: E2 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 03 00 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 03 00 FF 0A 00 90 00 7D [07:06:22]RAPDU: 90 00 [07:06:22]wFMCommunicate OK [07:06:22]wFMCommunicate request_size=255 [07:06:22]MH_SAM_APDU [07:06:22]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 F1 5F 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [07:06:22]Write to MH i2c: E2 02 01 00 0B 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 F1 5F 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 01 [07:06:22]Write i2c OK [07:06:22]MH_I2C_Read... [07:06:22]OFD Sender: No OFD packet to send [07:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:22]Read from MH i2c: E2 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 03 00 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 03 00 00 0B 00 90 00 7F [07:06:22]RAPDU: 90 00 [07:06:22]wFMCommunicate OK [07:06:22]wFMCommunicate request_size=58 [07:06:22]MH_SAM_APDU [07:06:22]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 85 10 00 00 35 04 06 00 7C 1C D9 51 20 CD [07:06:22]Write to MH i2c: E2 3D 00 01 0B 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 85 10 00 00 35 04 06 00 7C 1C D9 51 20 CD 00 00 BD [07:06:22]Write i2c OK [07:06:22]MH_I2C_Read... [07:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:22]Read from MH i2c: E2 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 03 00 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [07:06:22]RAPDU: 90 00 [07:06:22]wFMCommunicate OK [07:06:22]wFMCommunicate request_size=4 [07:06:22]MH_SAM_APDU [07:06:22]CAPDU: 80 0D 03 02 [07:06:22]Write to MH i2c: E2 08 00 02 0B 80 0D 03 02 00 00 00 00 88 [07:06:22]Write i2c OK [07:06:22]MH_I2C_Read... [07:06:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:22]Read from MH i2c: E2 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 0B 00 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 0B 00 02 0B 00 39 34 F5 0A 28 0F 27 86 90 00 D9 [07:06:22]RAPDU: 39 34 F5 0A 28 0F 27 86 90 00 [07:06:22]wFMCommunicate OK [07:06:22]SAM_PROTO_SignData done [07:06:22]FM_MakeSignedData done [07:06:22]CreateOFDProtocolMessage [07:06:22]wFMCommunicate request_size=4 [07:06:22]MH_SAM_APDU [07:06:22]CAPDU: 80 11 00 00 [07:06:22]Write to MH i2c: E2 08 00 03 0B 80 11 00 00 00 00 00 00 88 [07:06:22]Write i2c OK [07:06:22]MH_I2C_Read... [07:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:22]Read from MH i2c: E2 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 17 00 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: E2 17 00 03 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 DB [07:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:06:22]wFMCommunicate OK [07:06:22]CreateOFDProtocolMessage done [07:06:22]OFDSenderStorePacket 4229 [07:06:22]StoreOFDPacket docnum=4229 [07:06:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3F 01 00 00 57 DF 37 01 2B 5D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 F1 5F 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 85 10 00 00 35 04 06 00 7C 1C D9 51 20 CD 39 34 F5 0A 28 0F 27 86 [07:06:22]CheckFolder [07:06:22]dirname=/storage/ofd_packets [07:06:22]CheckFolder done [07:06:22]ProducePacketName [07:06:22]name=ofd_packets/00004229 [07:06:22]NVStorageSaveData ofd_packets/00004229 [07:06:22]File name is /storage/ofd_packets/00004229 [07:06:22]Write 349 bytes [07:06:22]NVStorageSaveData done [07:06:22]OFDSenderStorePacket done [07:06:22]KKMCreateOFDPacket done [07:06:22]NVStorageSaveData kkm_last_timestamp [07:06:22]File name is /storage/kkm_last_timestamp [07:06:22]Write 4 bytes [07:06:22]NVStorageSaveData done [07:06:22]ExternCall_PrintAddStr [07:06:22]wPrintStart [07:06:22]Write to MH i2c: 01 00 00 04 0B 0F [07:06:22]OFD Sender: Processing packet 4229 [packets to send 2, broken 1] [07:06:22]ProducePacketName [07:06:22]name=ofd_packets/00004229 [07:06:22]OFD Sender: To server: pG, [07:06:22]CommunicateWithHost lk.salyk.kg:30040 [07:06:22]ConnectInit lk.salyk.kg [07:06:22]Write i2c OK [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: 01 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: 01 07 00 [07:06:22]MH_I2C_Read... [07:06:22]Read from MH i2c: 01 07 00 04 0B 00 00 00 00 00 FF 0F 24 [07:06:22]RasterBufferAndPrint [07:06:22]line Счет N : (3)4481 [07:06:22]line ИНН: 02508201610067 [07:06:22]line Контрольно-Кассовый Чек [07:06:22]line ПРОДАЖА [07:06:22]line Товар: 4700000480364 [07:06:22]line Напиток энерг Nitro экзотик 0.45 ж/б [07:06:22]line 1.000 * 85.00 [07:06:22]line = 85.00 [07:06:22]line НДС 12% НСП 1% [07:06:22]line > о реализуемом товаре [07:06:22]line ИТОГО: 85.00 [07:06:22]line НСП 1% : 0.75 [07:06:22]line НДС 12% : 9.03 [07:06:22]line Наличными: 85.00 [07:06:22]line Безнал.: 0.00 [07:06:22]line Место: АЗС № 116 "Партнер Нефть" [07:06:22]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:06:22]line СНО: Общий режим [07:06:22]line Чек 4 06.06.2024 07:06 [07:06:22]line Смена: 85 ФФД: 1.0 [07:06:22]line ЗНМ: 0300000233 [07:06:22]line РНМ: 0000000000145775 [07:06:22]line Версия ККМ: v1.0 [07:06:22]line ФМ: 0000000000959360 [07:06:22]line ФД: 4229 [07:06:22]line ФПД: 136463346901197 [07:06:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T070625&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4229&fm=136463346901197&tin=02508201610067®Number=0000000000145775&sum=8500 [07:06:23]line 0 [07:06:23]Connected sock=10 [07:06:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3F 01 00 00 57 DF 37 01 2B 5D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 F1 5F 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 85 10 00 00 35 04 06 00 7C 1C D9 51 20 CD 39 written 0, free lines is 4095 [07:06:23]34 F5 0A 28 0F 27 86 [07:06:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 72 FA 47 00 87 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 39 35 39 33 36 30 10 04 04 00 85 10 00 00 F4 03 04 00 F1 0B 61 66 B6 04 01 00 00 0C A0 73 80 0B 3D 4D 50 [07:06:23]CommunicateWithHost err = 0 [07:06:23]CheckOFDResponse [07:06:23]1017 (14) - 77093643461234 [07:06:23]1041 (16) - 0000000000959360 [07:06:23]1040 (4) - 4229 [07:06:23]1012 (4) - 06.06.2024 01:08 [07:06:23]1206 (1) - 0 [07:06:23]OFD Sender: Remove packet 4229 [07:06:23]ProducePacketName [07:06:23]name=ofd_packets/00004229 [07:06:23]NVStorageDeleteData [07:06:23]Write to MH i2c: 01 00 00 2D 0B 38 [07:06:23]Write i2c OK [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: 01 [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: 01 07 00 [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: 01 07 00 2D 0B 00 00 00 00 00 AD 0C F8 [07:06:23]RasterBufferAndPrint [07:06:23]line [07:06:23]line [07:06:23]line [07:06:23]line [07:06:23]line [07:06:23]written 0, free lines is 3248 [07:06:23]MH_Cut [07:06:23]Write to MH i2c: D1 01 00 34 0B 01 11 [07:06:23]Write i2c OK [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: D1 [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: D1 01 00 [07:06:23]MH_I2C_Read... [07:06:23]Read from MH i2c: D1 01 00 34 0B 00 10 [07:06:23]Write to MH i2c: 01 00 00 35 0B 40 [07:06:23]Write i2c OK [07:06:23]MH_I2C_Read... [07:06:23]OFD Sender: No OFD packet to send [07:06:24]*** Cut start [07:06:24]*** Partial cut [07:06:24]*** CUTSNS_PIN = 1 [07:06:24]*** CUTSNS_PIN = 0 [07:06:24]*** Brake cut motor [07:06:25]Read from MH i2c: 01 [07:06:25]MH_I2C_Read... [07:06:25]*** Stop cut motor [07:06:25]*** Cut end [07:06:25]Read from MH i2c: 01 07 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: 01 07 00 35 0B 00 00 00 00 00 FF 0F 55 [07:06:25]process_action close_receipt done [07:06:25]requested_data is exist [07:06:25]produce_requested_data [07:06:25]requested_item fm.sn is exist - process it [07:06:25]wFMCommunicate request_size=4 [07:06:25]MH_SAM_APDU [07:06:25]CAPDU: 80 11 00 00 [07:06:25]Write to MH i2c: E2 08 00 36 0B 80 11 00 00 00 00 00 00 BB [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:25]Read from MH i2c: E2 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 17 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 17 00 36 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 0E [07:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:06:25]wFMCommunicate OK [07:06:25]requested_item fd.num is exist - process it [07:06:25]SAM_PROTO_GetFieldsCounters [07:06:25]wFMCommunicate request_size=4 [07:06:25]MH_SAM_APDU [07:06:25]CAPDU: 80 13 00 00 [07:06:25]Write to MH i2c: E2 08 00 37 0B 80 13 00 00 00 00 00 00 BE [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:25]Read from MH i2c: E2 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 62 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 62 00 37 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 85 10 00 00 0E 04 04 00 55 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 D9 [07:06:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 85 10 00 00 0E 04 04 00 55 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 [07:06:25]wFMCommunicate OK [07:06:25]SAM_PROTO_GetFieldsCounters done [07:06:25]requested_item shift.num is exist - process it [07:06:25]requested_item shift.opened is exist - process it [07:06:25]req_shift_opened [07:06:25]FM_GetShiftState [07:06:25]SAM_PROTO_GetShiftState [07:06:25]wFMCommunicate request_size=4 [07:06:25]MH_SAM_APDU [07:06:25]CAPDU: 80 13 01 00 [07:06:25]Write to MH i2c: E2 08 00 38 0B 80 13 01 00 00 00 00 00 C0 [07:06:25]Write i2c OK [07:06:25]MH_I2C_Read... [07:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:25]Read from MH i2c: E2 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 0E 00 [07:06:25]MH_I2C_Read... [07:06:25]Read from MH i2c: E2 0E 00 38 0B 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 79 [07:06:25]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:06:25]wFMCommunicate OK [07:06:25]SAM_PROTO_GetShiftState done [07:06:25]FM_GetShiftState done [07:06:25]req_shift_opened done [07:06:25]requested_item shift.open_date is exist - process it [07:06:25]req_shift_open_date [07:06:25]req_shift_open_date done [07:06:25]produce_requested_data done [07:06:25]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4229,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:06:25]process_action_free close_receipt [07:06:25]json_value_free [07:06:25]json_value_free done [07:06:25]process_json_proto returns [07:06:25]Send response to host [07:06:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4229,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:06:25]free response buf [07:06:25]execute_script done [07:06:25]execute_script returns [07:06:25]free content buf [07:06:25]Sock 8.Close socket [07:06:25]Sock 8.Thread stoped [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:03]accept exits with 9 [07:07:03]New connection [07:07:03]New thread 3066629476 created [07:07:03]Thread 3066772836 joined [07:07:03]Waiting for new connection... [07:07:03] Sock 9.Parse request [07:07:03]Sock 9.Check first char [07:07:03]Sock 9.First char is OK [07:07:03]request: POST /json_proto HTTP/1.0 [07:07:03]Method: POST [07:07:03]URL: /json_proto [07:07:03]Method is POST - this is cgi request [07:07:03]url: /json_proto [07:07:03]query_string will be loaded in cgi processing [07:07:03]execute_cgi json_proto POST (null) [07:07:03]execute_cgi path=json_proto method=POST [07:07:03]POST find Content-Length [07:07:03]Host: 172.17.56.68:8080 [07:07:03]Content-Length: 693 [07:07:03]Content-Type: application/json [07:07:03] [07:07:03]POST finish read [07:07:03]Found Content-Length = 693 [07:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4482", "tax_sys" : 0, "items" : [ { "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:03]execute_script... [07:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4482", "tax_sys" : 0, "items" : [ { "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:03]POST & json_proto [07:07:03]process_json_proto [07:07:03]json parsed OK: [07:07:03]protocol is kg_v1.0 [07:07:03]action value=close_receipt [07:07:03]process_action close_receipt [07:07:03]cmd_close_receipt [07:07:03]MH_GetDate [07:07:03]Write to MH i2c: F0 00 00 39 0B 33 [07:07:03]Write i2c OK [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: F0 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: F0 09 00 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: F0 09 00 39 0B 00 1B 60 61 66 3A 8F 60 66 0D [07:07:03]GetLastDocTimeStamp 1717657585 [07:07:03]current date 1717657627 [07:07:03]FM_GetShiftState [07:07:03]SAM_PROTO_GetShiftState [07:07:03]wFMCommunicate request_size=4 [07:07:03]MH_SAM_APDU [07:07:03]CAPDU: 80 13 01 00 [07:07:03]Write to MH i2c: E2 08 00 3A 0B 80 13 01 00 00 00 00 00 C2 [07:07:03]Write i2c OK [07:07:03]MH_I2C_Read... [07:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:03]Read from MH i2c: E2 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 0E 00 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 0E 00 3A 0B 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 7B [07:07:03]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:07:03]wFMCommunicate OK [07:07:03]SAM_PROTO_GetShiftState done [07:07:03]FM_GetShiftState done [07:07:03]opened in 1717632745 [07:07:03]opened+sec_in_day 1717719145 [07:07:03]quantity*price = 1500 [07:07:03]sum+1 = 1501 [07:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 15.00 НСП 1% : 0.13 НДС 12% : 1.59 Наличными: 15.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 5 06.06.2024 07:07 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4230 ФПД: 154732712499384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T070707&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4230&fm=154732712499384&tin=02508201610067®Number=0000000000145775&sum=1500 0 [07:07:04]StoreToDocumentArchive [07:07:04]shift 85 fd 4230 [07:07:04]save to /storage/0085/doc_00004230 [07:07:04]save last doc name /storage/0085/doc_00004230 to /storage/kkm_last_doc_name [07:07:04]save OK [07:07:04]Clear old archive folders... [07:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=290 [07:07:04]tlvbuf is 01998370 [07:07:04]SAM_PROTO_ClearQueue [07:07:04]wFMCommunicate request_size=4 [07:07:04]MH_SAM_APDU [07:07:04]CAPDU: 80 09 00 00 [07:07:04]Write to MH i2c: E2 08 00 47 0B 80 09 00 00 00 00 00 00 C4 [07:07:04]Write i2c OK [07:07:04]MH_I2C_Read... [07:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:04]Read from MH i2c: E2 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 03 00 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [07:07:04]RAPDU: 90 00 [07:07:04]wFMCommunicate OK [07:07:04]SAM_PROTO_ClearQueue done [07:07:04]KKMCreateOFDPacket [07:07:04]OFDProtocolAddRootSTLVToBuf [07:07:04]FM_MakeSignedData [07:07:04]FM_MakeSignedData [07:07:04]SAM_PROTO_SignData [07:07:04]wFMCommunicate request_size=4 [07:07:04]MH_SAM_APDU [07:07:04]CAPDU: 80 0D 01 02 [07:07:04]Write to MH i2c: E2 08 00 48 0B 80 0D 01 02 00 00 00 00 CC [07:07:04]Write i2c OK [07:07:04]MH_I2C_Read... [07:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:04]Read from MH i2c: E2 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 03 00 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 03 00 48 0B 00 90 00 C7 [07:07:04]RAPDU: 90 00 [07:07:04]wFMCommunicate OK [07:07:04]wFMCommunicate request_size=255 [07:07:04]MH_SAM_APDU [07:07:04]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 1B 60 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [07:07:04]Write to MH i2c: E2 02 01 49 0B 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 1B 60 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 26 [07:07:04]Write i2c OK [07:07:04]MH_I2C_Read... [07:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:04]Read from MH i2c: E2 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 03 00 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 03 00 49 0B 00 90 00 C8 [07:07:04]RAPDU: 90 00 [07:07:04]wFMCommunicate OK [07:07:04]wFMCommunicate request_size=49 [07:07:04]MH_SAM_APDU [07:07:04]CAPDU: 80 0D 02 02 2C 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 86 10 00 00 35 04 06 00 8C BA 84 5D 18 B8 [07:07:04]Write to MH i2c: E2 34 00 4A 0B 80 0D 02 02 2C 00 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 86 10 00 00 35 04 06 00 8C BA 84 5D 18 B8 00 00 8D [07:07:04]Write i2c OK [07:07:04]MH_I2C_Read... [07:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:04]Read from MH i2c: E2 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 03 00 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 03 00 4A 0B 00 90 00 C9 [07:07:04]RAPDU: 90 00 [07:07:04]wFMCommunicate OK [07:07:04]wFMCommunicate request_size=4 [07:07:04]MH_SAM_APDU [07:07:04]CAPDU: 80 0D 03 02 [07:07:04]Write to MH i2c: E2 08 00 4B 0B 80 0D 03 02 00 00 00 00 D1 [07:07:04]Write i2c OK [07:07:04]MH_I2C_Read... [07:07:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:04]Read from MH i2c: E2 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 0B 00 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 0B 00 4B 0B 00 58 35 26 0A E2 D4 FD 0F 90 00 51 [07:07:04]RAPDU: 58 35 26 0A E2 D4 FD 0F 90 00 [07:07:04]wFMCommunicate OK [07:07:04]SAM_PROTO_SignData done [07:07:04]FM_MakeSignedData done [07:07:04]CreateOFDProtocolMessage [07:07:04]wFMCommunicate request_size=4 [07:07:04]MH_SAM_APDU [07:07:04]CAPDU: 80 11 00 00 [07:07:04]Write to MH i2c: E2 08 00 4C 0B 80 11 00 00 00 00 00 00 D1 [07:07:04]Write i2c OK [07:07:04]MH_I2C_Read... [07:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:04]Read from MH i2c: E2 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 17 00 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: E2 17 00 4C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 24 [07:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:07:04]wFMCommunicate OK [07:07:04]CreateOFDProtocolMessage done [07:07:04]OFDSenderStorePacket 4230 [07:07:04]StoreOFDPacket docnum=4230 [07:07:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 36 01 00 00 CA 78 2E 01 82 04 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 1B 60 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 86 10 00 00 35 04 06 00 8C BA 84 5D 18 B8 58 35 26 0A E2 D4 FD 0F [07:07:04]CheckFolder [07:07:04]dirname=/storage/ofd_packets [07:07:04]CheckFolder done [07:07:04]ProducePacketName [07:07:04]name=ofd_packets/00004230 [07:07:04]NVStorageSaveData ofd_packets/00004230 [07:07:04]File name is /storage/ofd_packets/00004230 [07:07:04]Write 340 bytes [07:07:04]NVStorageSaveData done [07:07:04]OFDSenderStorePacket done [07:07:04]KKMCreateOFDPacket done [07:07:04]NVStorageSaveData kkm_last_timestamp [07:07:04]File name is /storage/kkm_last_timestamp [07:07:04]Write 4 bytes [07:07:04]NVStorageSaveData done [07:07:04]ExternCall_PrintAddStr [07:07:04]wPrintStart [07:07:04]Write to MH i2c: 01 00 00 4D 0B 58 [07:07:04]OFD Sender: Processing packet 4230 [packets to send 2, broken 1] [07:07:04]ProducePacketName [07:07:04]name=ofd_packets/00004230 [07:07:04]OFD Sender: To server: pG, [07:07:04]CommunicateWithHost lk.salyk.kg:30040 [07:07:04]ConnectInit lk.salyk.kg [07:07:04]Write i2c OK [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: 01 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: 01 07 00 [07:07:04]MH_I2C_Read... [07:07:04]Read from MH i2c: 01 07 00 4D 0B 00 00 00 00 00 FF 0F 6D [07:07:04]RasterBufferAndPrint [07:07:04]line Счет N : (3)4482 [07:07:04]line ИНН: 02508201610067 [07:07:04]line Контрольно-Кассовый Чек [07:07:04]line ПРОДАЖА [07:07:04]line Товар: 4700000160013 [07:07:04]line Снек Курут индивидуальный [07:07:04]line 1.000 * 15.00 [07:07:04]line = 15.00 [07:07:04]line НДС 12% НСП 1% [07:07:04]line > о реализуемом товаре [07:07:04]line ИТОГО: 15.00 [07:07:04]line НСП 1% : 0.13 [07:07:04]line НДС 12% : 1.59 [07:07:04]line Наличными: 15.00 [07:07:04]line Безнал.: 0.00 [07:07:04]line Место: АЗС № 116 "Партнер Нефть" [07:07:04]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:07:04]line СНО: Общий режим [07:07:04]line Чек 5 06.06.2024 07:07 [07:07:04]line Смена: 85 ФФД: 1.0 [07:07:04]line ЗНМ: 0300000233 [07:07:04]line РНМ: 0000000000145775 [07:07:04]line Версия ККМ: v1.0 [07:07:04]line ФМ: 0000000000959360 [07:07:04]line ФД: 4230 [07:07:04]line ФПД: 154732712499384 [07:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T070707&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4230&fm=154732712499384&tin=02508201610067®Number=0000000000145775&sum=1500 [07:07:05]line 0 [07:07:05]Connected sock=10 [07:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 36 01 00 00 CA 78 2E 01 82 04 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 1B 60 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 86 10 00 00 35 04 06 00 8C BA 84 5D 18 B8 58 35 26 0A E2 D4 FD 0F [07:07:05]written 0, free lines is 4095 [07:07:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 20 DF 47 00 92 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 86 10 00 00 F4 03 04 00 1B 0C 61 66 B6 04 01 00 00 AA F5 10 09 A3 3C 83 CD [07:07:05]CommunicateWithHost err = 0 [07:07:05]CheckOFDResponse [07:07:05]1017 (14) - 77093643461234 [07:07:05]1041 (16) - 0000000000959360 [07:07:05]1040 (4) - 4230 [07:07:05]1012 (4) - 06.06.2024 01:08 [07:07:05]1206 (1) - 0 [07:07:05]OFD Sender: Remove packet 4230 [07:07:05]ProducePacketName [07:07:05]name=ofd_packets/00004230 [07:07:05]NVStorageDeleteData [07:07:05]Write to MH i2c: 01 00 00 75 0B 80 [07:07:05]Write i2c OK [07:07:05]MH_I2C_Read... [07:07:05]Read from MH i2c: 01 [07:07:05]MH_I2C_Read... [07:07:05]Read from MH i2c: 01 07 00 [07:07:05]MH_I2C_Read... [07:07:05]Read from MH i2c: 01 07 00 75 0B 00 00 00 00 00 C3 0C 56 [07:07:05]RasterBufferAndPrint [07:07:05]line [07:07:05]line [07:07:05]line [07:07:05]line [07:07:05]line [07:07:05]written 0, free lines is 3272 [07:07:05]MH_Cut [07:07:05]Write to MH i2c: D1 01 00 7C 0B 01 59 [07:07:05]Write i2c OK [07:07:05]MH_I2C_Read... [07:07:05]Read from MH i2c: D1 [07:07:05]MH_I2C_Read... [07:07:05]Read from MH i2c: D1 01 00 [07:07:05]MH_I2C_Read... [07:07:05]Read from MH i2c: D1 01 00 7C 0B 00 58 [07:07:05]Write to MH i2c: 01 00 00 7D 0B 88 [07:07:05]Write i2c OK [07:07:05]MH_I2C_Read... [07:07:05]OFD Sender: No OFD packet to send [07:07:06]*** Cut start [07:07:06]*** Partial cut [07:07:06]*** CUTSNS_PIN = 1 [07:07:06]*** CUTSNS_PIN = 0 [07:07:06]*** Brake cut motor [07:07:07]Read from MH i2c: 01 [07:07:07]MH_I2C_Read... [07:07:07]*** Stop cut motor [07:07:07]*** Cut end [07:07:07]Read from MH i2c: 01 07 00 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: 01 07 00 7D 0B 00 00 00 00 00 FF 0F 9D [07:07:07]process_action close_receipt done [07:07:07]requested_data is exist [07:07:07]produce_requested_data [07:07:07]requested_item fm.sn is exist - process it [07:07:07]wFMCommunicate request_size=4 [07:07:07]MH_SAM_APDU [07:07:07]CAPDU: 80 11 00 00 [07:07:07]Write to MH i2c: E2 08 00 7E 0B 80 11 00 00 00 00 00 00 03 [07:07:07]Write i2c OK [07:07:07]MH_I2C_Read... [07:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:07]Read from MH i2c: E2 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: E2 17 00 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: E2 17 00 7E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 56 [07:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:07:07]wFMCommunicate OK [07:07:07]requested_item fd.num is exist - process it [07:07:07]SAM_PROTO_GetFieldsCounters [07:07:07]wFMCommunicate request_size=4 [07:07:07]MH_SAM_APDU [07:07:07]CAPDU: 80 13 00 00 [07:07:07]Write to MH i2c: E2 08 00 7F 0B 80 13 00 00 00 00 00 00 06 [07:07:07]Write i2c OK [07:07:07]MH_I2C_Read... [07:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:07]Read from MH i2c: E2 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: E2 62 00 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: E2 62 00 7F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 86 10 00 00 0E 04 04 00 55 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 25 [07:07:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 86 10 00 00 0E 04 04 00 55 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 [07:07:07]wFMCommunicate OK [07:07:07]SAM_PROTO_GetFieldsCounters done [07:07:07]requested_item shift.num is exist - process it [07:07:07]requested_item shift.opened is exist - process it [07:07:07]req_shift_opened [07:07:07]FM_GetShiftState [07:07:07]SAM_PROTO_GetShiftState [07:07:07]wFMCommunicate request_size=4 [07:07:07]MH_SAM_APDU [07:07:07]CAPDU: 80 13 01 00 [07:07:07]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [07:07:07]Write i2c OK [07:07:07]MH_I2C_Read... [07:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:07]Read from MH i2c: E2 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: E2 0E 00 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 C1 [07:07:07]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:07:07]wFMCommunicate OK [07:07:07]SAM_PROTO_GetShiftState done [07:07:07]FM_GetShiftState done [07:07:07]req_shift_opened done [07:07:07]requested_item shift.open_date is exist - process it [07:07:07]req_shift_open_date [07:07:07]req_shift_open_date done [07:07:07]produce_requested_data done [07:07:07]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4230,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:07:07]process_action_free close_receipt [07:07:07]json_value_free [07:07:07]json_value_free done [07:07:07]process_json_proto returns [07:07:07]Send response to host [07:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4230,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:07:07]free response buf [07:07:07]execute_script done [07:07:07]execute_script returns [07:07:07]free content buf [07:07:07]Sock 9.Close socket [07:07:07]Sock 9.Thread stoped [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]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:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:04]accept exits with 8 [07:14:04]New connection [07:14:04]New thread 3066772836 created [07:14:04]Thread 3066629476 joined [07:14:04]Waiting for new connection... [07:14:04] Sock 8.Parse request [07:14:04]Sock 8.Check first char [07:14:04]Sock 8.First char is OK [07:14:04]request: POST /json_proto HTTP/1.0 [07:14:04]Method: POST [07:14:04]URL: /json_proto [07:14:04]Method is POST - this is cgi request [07:14:04]url: /json_proto [07:14:04]query_string will be loaded in cgi processing [07:14:04]execute_cgi json_proto POST (null) [07:14:04]execute_cgi path=json_proto method=POST [07:14:04]POST find Content-Length [07:14:04]Host: 172.17.56.68:8080 [07:14:04]Content-Length: 618 [07:14:04]Content-Type: application/json [07:14:04] [07:14:04]POST finish read [07:14:04]Found Content-Length = 618 [07:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4483", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:04]execute_script... [07:14:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4483", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:04]POST & json_proto [07:14:04]process_json_proto [07:14:04]json parsed OK: [07:14:04]protocol is kg_v1.0 [07:14:04]action value=close_receipt [07:14:04]process_action close_receipt [07:14:04]cmd_close_receipt [07:14:04]MH_GetDate [07:14:04]Write to MH i2c: F0 00 00 81 0B 7B [07:14:04]Write i2c OK [07:14:04]MH_I2C_Read... [07:14:04]Read from MH i2c: F0 [07:14:04]MH_I2C_Read... [07:14:04]Read from MH i2c: F0 09 00 [07:14:04]MH_I2C_Read... [07:14:04]Read from MH i2c: F0 09 00 81 0B 00 C0 61 61 66 3A 8F 60 66 FB [07:14:04]GetLastDocTimeStamp 1717657627 [07:14:04]current date 1717658048 [07:14:04]FM_GetShiftState [07:14:04]SAM_PROTO_GetShiftState [07:14:04]wFMCommunicate request_size=4 [07:14:04]MH_SAM_APDU [07:14:04]CAPDU: 80 13 01 00 [07:14:04]Write to MH i2c: E2 08 00 82 0B 80 13 01 00 00 00 00 00 0A [07:14:04]Write i2c OK [07:14:04]MH_I2C_Read... [07:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:04]Read from MH i2c: E2 [07:14:04]MH_I2C_Read... [07:14:04]Read from MH i2c: E2 0E 00 [07:14:04]MH_I2C_Read... [07:14:04]Read from MH i2c: E2 0E 00 82 0B 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 C3 [07:14:04]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:14:04]wFMCommunicate OK [07:14:04]SAM_PROTO_GetShiftState done [07:14:04]FM_GetShiftState done [07:14:04]opened in 1717632745 [07:14:04]opened+sec_in_day 1717719145 [07:14:04]quantity*price = 13500 [07:14:04]sum+1 = 13501 [07:14:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 6 06.06.2024 07:14 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4231 ФПД: 56842033663012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T071408&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4231&fm=56842033663012&tin=02508201610067®Number=0000000000145775&sum=13500 0 [07:14:05]StoreToDocumentArchive [07:14:05]shift 85 fd 4231 [07:14:05]save to /storage/0085/doc_00004231 [07:14:05]save last doc name /storage/0085/doc_00004231 to /storage/kkm_last_doc_name [07:14:05]save OK [07:14:05]Clear old archive folders... [07:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:14:05]tlvbuf is 019C7AD0 [07:14:05]SAM_PROTO_ClearQueue [07:14:05]wFMCommunicate request_size=4 [07:14:05]MH_SAM_APDU [07:14:05]CAPDU: 80 09 00 00 [07:14:05]Write to MH i2c: E2 08 00 8F 0B 80 09 00 00 00 00 00 00 0C [07:14:05]Write i2c OK [07:14:05]MH_I2C_Read... [07:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:05]Read from MH i2c: E2 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 03 00 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [07:14:05]RAPDU: 90 00 [07:14:05]wFMCommunicate OK [07:14:05]SAM_PROTO_ClearQueue done [07:14:05]KKMCreateOFDPacket [07:14:05]OFDProtocolAddRootSTLVToBuf [07:14:05]FM_MakeSignedData [07:14:05]FM_MakeSignedData [07:14:05]SAM_PROTO_SignData [07:14:05]wFMCommunicate request_size=4 [07:14:05]MH_SAM_APDU [07:14:05]CAPDU: 80 0D 01 02 [07:14:05]Write to MH i2c: E2 08 00 90 0B 80 0D 01 02 00 00 00 00 14 [07:14:05]Write i2c OK [07:14:05]MH_I2C_Read... [07:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:05]Read from MH i2c: E2 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 03 00 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [07:14:05]RAPDU: 90 00 [07:14:05]wFMCommunicate OK [07:14:05]wFMCommunicate request_size=255 [07:14:05]MH_SAM_APDU [07:14:05]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 C0 61 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 [07:14:05]Write to MH i2c: E2 02 01 91 0B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 C0 61 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 16 [07:14:05]Write i2c OK [07:14:05]MH_I2C_Read... [07:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:05]Read from MH i2c: E2 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 03 00 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [07:14:05]RAPDU: 90 00 [07:14:05]wFMCommunicate OK [07:14:05]wFMCommunicate request_size=31 [07:14:05]MH_SAM_APDU [07:14:05]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 30 10 04 04 00 87 10 00 00 35 04 06 00 33 B2 91 39 8C 24 [07:14:05]Write to MH i2c: E2 22 00 92 0B 80 0D 02 02 1A 00 30 30 39 35 39 33 36 30 10 04 04 00 87 10 00 00 35 04 06 00 33 B2 91 39 8C 24 00 00 38 [07:14:05]Write i2c OK [07:14:05]MH_I2C_Read... [07:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:05]Read from MH i2c: E2 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 03 00 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 03 00 92 0B 00 90 00 11 [07:14:05]RAPDU: 90 00 [07:14:05]wFMCommunicate OK [07:14:05]wFMCommunicate request_size=4 [07:14:05]MH_SAM_APDU [07:14:05]CAPDU: 80 0D 03 02 [07:14:05]Write to MH i2c: E2 08 00 93 0B 80 0D 03 02 00 00 00 00 19 [07:14:05]Write i2c OK [07:14:05]MH_I2C_Read... [07:14:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:05]Read from MH i2c: E2 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 0B 00 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 0B 00 93 0B 00 36 27 C5 77 8F 5C A0 8E 90 00 CC [07:14:05]RAPDU: 36 27 C5 77 8F 5C A0 8E 90 00 [07:14:05]wFMCommunicate OK [07:14:05]SAM_PROTO_SignData done [07:14:05]FM_MakeSignedData done [07:14:05]CreateOFDProtocolMessage [07:14:05]wFMCommunicate request_size=4 [07:14:05]MH_SAM_APDU [07:14:05]CAPDU: 80 11 00 00 [07:14:05]Write to MH i2c: E2 08 00 94 0B 80 11 00 00 00 00 00 00 19 [07:14:05]Write i2c OK [07:14:05]MH_I2C_Read... [07:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:05]Read from MH i2c: E2 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 17 00 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: E2 17 00 94 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 6C [07:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:14:05]wFMCommunicate OK [07:14:05]CreateOFDProtocolMessage done [07:14:05]OFDSenderStorePacket 4231 [07:14:05]StoreOFDPacket docnum=4231 [07:14:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 24 01 00 00 21 88 1C 01 88 8E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 C0 61 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 87 10 00 00 35 04 06 00 33 B2 91 39 8C 24 36 27 C5 77 8F 5C A0 8E [07:14:05]CheckFolder [07:14:05]dirname=/storage/ofd_packets [07:14:05]CheckFolder done [07:14:05]ProducePacketName [07:14:05]name=ofd_packets/00004231 [07:14:05]NVStorageSaveData ofd_packets/00004231 [07:14:05]File name is /storage/ofd_packets/00004231 [07:14:05]Write 322 bytes [07:14:05]NVStorageSaveData done [07:14:05]OFDSenderStorePacket done [07:14:05]KKMCreateOFDPacket done [07:14:05]NVStorageSaveData kkm_last_timestamp [07:14:05]File name is /storage/kkm_last_timestamp [07:14:05]Write 4 bytes [07:14:05]NVStorageSaveData done [07:14:05]ExternCall_PrintAddStr [07:14:05]wPrintStart [07:14:05]Write to MH i2c: 01 00 00 95 0B A0 [07:14:05]Write i2c OK [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: 01 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: 01 07 00 [07:14:05]MH_I2C_Read... [07:14:05]Read from MH i2c: 01 07 00 95 0B 00 00 00 00 00 FF 0F B5 [07:14:05]RasterBufferAndPrint [07:14:05]line Счет N : (3)4483 [07:14:05]line ИНН: 02508201610067 [07:14:05]line Контрольно-Кассовый Чек [07:14:05]line ПРОДАЖА [07:14:05]line Товар: 48745000 [07:14:05]line Сигареты Winston Purple Mix [07:14:05]line 1.000 * 135.00 [07:14:05]line = 135.00 [07:14:05]line НДС 12% НСП 1% [07:14:05]line > о реализуемом товаре [07:14:05]line ИТОГО: 135.00 [07:14:05]line НСП 1% : 1.19 [07:14:05]line НДС 12% : 14.34 [07:14:05]line Наличными: 135.00 [07:14:05]line Безнал.: 0.00 [07:14:05]line Место: АЗС № 116 "Партнер Нефть" [07:14:05]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:14:05]line СНО: Общий режим [07:14:05]line Чек 6 06.06.2024 07:14 [07:14:05]line Смена: 85 ФФД: 1.0 [07:14:05]line ЗНМ: 0300000233 [07:14:05]line РНМ: 0000000000145775 [07:14:05]line Версия ККМ: v1.0 [07:14:05]line ФМ: 0000000000959360 [07:14:05]line ФД: 4231 [07:14:05]line ФПД: 56842033663012 [07:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T071408&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4231&fm=56842033663012&tin=02508201610067®Number=0000000000145775&sum=13500 [07:14:06]line 0 [07:14:06]OFD Sender: Processing packet 4231 [packets to send 2, broken 1] [07:14:06]ProducePacketName [07:14:06]name=ofd_packets/00004231 [07:14:06]OFD Sender: To server: pG, [07:14:06]CommunicateWithHost lk.salyk.kg:30040 [07:14:06]ConnectInit lk.salyk.kg [07:14:06]written 0, free lines is 4095 [07:14:06]Connected sock=10 [07:14:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 24 01 00 00 21 88 1C 01 88 8E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 C0 61 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 87 10 00 00 35 04 06 00 33 B2 91 39 8C 24 36 27 C5 77 8F 5C A0 8E [07:14:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 C4 3D 47 00 90 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 87 10 00 00 F4 03 04 00 C0 0D 61 66 B6 04 01 00 00 60 53 86 00 75 46 C5 A5 [07:14:06]CommunicateWithHost err = 0 [07:14:06]CheckOFDResponse [07:14:06]1017 (14) - 77093643461234 [07:14:06]1041 (16) - 0000000000959360 [07:14:06]1040 (4) - 4231 [07:14:06]1012 (4) - 06.06.2024 01:15 [07:14:06]1206 (1) - 0 [07:14:06]OFD Sender: Remove packet 4231 [07:14:06]ProducePacketName [07:14:06]name=ofd_packets/00004231 [07:14:06]NVStorageDeleteData [07:14:06]Write to MH i2c: 01 00 00 BD 0B C8 [07:14:06]Write i2c OK [07:14:06]MH_I2C_Read... [07:14:06]Read from MH i2c: 01 [07:14:06]MH_I2C_Read... [07:14:06]Read from MH i2c: 01 07 00 [07:14:06]MH_I2C_Read... [07:14:06]Read from MH i2c: 01 07 00 BD 0B 00 00 00 00 00 C6 0C A1 [07:14:06]RasterBufferAndPrint [07:14:06]line [07:14:06]line [07:14:06]line [07:14:06]line [07:14:06]line [07:14:06]written 0, free lines is 3273 [07:14:06]MH_Cut [07:14:06]Write to MH i2c: D1 01 00 C4 0B 01 A1 [07:14:06]Write i2c OK [07:14:06]MH_I2C_Read... [07:14:06]Read from MH i2c: D1 [07:14:06]MH_I2C_Read... [07:14:06]Read from MH i2c: D1 01 00 [07:14:06]MH_I2C_Read... [07:14:06]Read from MH i2c: D1 01 00 C4 0B 00 A0 [07:14:06]Write to MH i2c: 01 00 00 C5 0B D0 [07:14:06]Write i2c OK [07:14:06]MH_I2C_Read... [07:14:07]OFD Sender: No OFD packet to send [07:14:07]*** Cut start [07:14:07]*** Partial cut [07:14:07]*** CUTSNS_PIN = 1 [07:14:07]*** CUTSNS_PIN = 0 [07:14:07]*** Brake cut motor [07:14:08]Read from MH i2c: 01 [07:14:08]MH_I2C_Read... [07:14:08]*** Stop cut motor [07:14:08]*** Cut end [07:14:08]Read from MH i2c: 01 07 00 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 FF 0F E5 [07:14:08]process_action close_receipt done [07:14:08]requested_data is exist [07:14:08]produce_requested_data [07:14:08]requested_item fm.sn is exist - process it [07:14:08]wFMCommunicate request_size=4 [07:14:08]MH_SAM_APDU [07:14:08]CAPDU: 80 11 00 00 [07:14:08]Write to MH i2c: E2 08 00 C6 0B 80 11 00 00 00 00 00 00 4B [07:14:08]Write i2c OK [07:14:08]MH_I2C_Read... [07:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:08]Read from MH i2c: E2 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 17 00 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 17 00 C6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 9E [07:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:14:08]wFMCommunicate OK [07:14:08]requested_item fd.num is exist - process it [07:14:08]SAM_PROTO_GetFieldsCounters [07:14:08]wFMCommunicate request_size=4 [07:14:08]MH_SAM_APDU [07:14:08]CAPDU: 80 13 00 00 [07:14:08]Write to MH i2c: E2 08 00 C7 0B 80 13 00 00 00 00 00 00 4E [07:14:08]Write i2c OK [07:14:08]MH_I2C_Read... [07:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:08]Read from MH i2c: E2 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 62 00 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 62 00 C7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 87 10 00 00 0E 04 04 00 55 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 71 [07:14:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 87 10 00 00 0E 04 04 00 55 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 [07:14:08]wFMCommunicate OK [07:14:08]SAM_PROTO_GetFieldsCounters done [07:14:08]requested_item shift.num is exist - process it [07:14:08]requested_item shift.opened is exist - process it [07:14:08]req_shift_opened [07:14:08]FM_GetShiftState [07:14:08]SAM_PROTO_GetShiftState [07:14:08]wFMCommunicate request_size=4 [07:14:08]MH_SAM_APDU [07:14:08]CAPDU: 80 13 01 00 [07:14:08]Write to MH i2c: E2 08 00 C8 0B 80 13 01 00 00 00 00 00 50 [07:14:08]Write i2c OK [07:14:08]MH_I2C_Read... [07:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:08]Read from MH i2c: E2 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 0E 00 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 0E 00 C8 0B 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 09 [07:14:08]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:14:08]wFMCommunicate OK [07:14:08]SAM_PROTO_GetShiftState done [07:14:08]FM_GetShiftState done [07:14:08]req_shift_opened done [07:14:08]requested_item shift.open_date is exist - process it [07:14:08]req_shift_open_date [07:14:08]req_shift_open_date done [07:14:08]produce_requested_data done [07:14:08]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4231,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:14:08]process_action_free close_receipt [07:14:08]json_value_free [07:14:08]json_value_free done [07:14:08]process_json_proto returns [07:14:08]Send response to host [07:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4231,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:14:08]free response buf [07:14:08]execute_script done [07:14:08]execute_script returns [07:14:08]free content buf [07:14:08]Sock 8.Close socket [07:14:08]Sock 8.Thread stoped [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:16:58]accept exits with 9 [07:16:58]New connection [07:16:58]New thread 3066629476 created [07:16:58]Thread 3066772836 joined [07:16:58]Waiting for new connection... [07:16:58] Sock 9.Parse request [07:16:58]Sock 9.Check first char [07:16:58]Sock 9.First char is OK [07:16:58]request: POST /json_proto HTTP/1.0 [07:16:58]Method: POST [07:16:58]URL: /json_proto [07:16:58]Method is POST - this is cgi request [07:16:58]url: /json_proto [07:16:58]query_string will be loaded in cgi processing [07:16:58]execute_cgi json_proto POST (null) [07:16:58]execute_cgi path=json_proto method=POST [07:16:58]POST find Content-Length [07:16:58]Host: 172.17.56.68:8080 [07:16:58]Content-Length: 619 [07:16:58]Content-Type: application/json [07:16:58] [07:16:58]POST finish read [07:16:58]Found Content-Length = 619 [07:16:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4484", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:58]execute_script... [07:16: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 : (3)4484", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:58]POST & json_proto [07:16:58]process_json_proto [07:16:58]json parsed OK: [07:16:58]protocol is kg_v1.0 [07:16:58]action value=close_receipt [07:16:58]process_action close_receipt [07:16:58]cmd_close_receipt [07:16:58]MH_GetDate [07:16:58]Write to MH i2c: F0 00 00 C9 0B C3 [07:16:58]Write i2c OK [07:16:58]MH_I2C_Read... [07:16:58]Read from MH i2c: F0 [07:16:58]MH_I2C_Read... [07:16:58]Read from MH i2c: F0 09 00 [07:16:58]MH_I2C_Read... [07:16:58]Read from MH i2c: F0 09 00 C9 0B 00 6E 62 61 66 3A 8F 60 66 F2 [07:16:58]GetLastDocTimeStamp 1717658048 [07:16:58]current date 1717658222 [07:16:58]FM_GetShiftState [07:16:58]SAM_PROTO_GetShiftState [07:16:58]wFMCommunicate request_size=4 [07:16:58]MH_SAM_APDU [07:16:58]CAPDU: 80 13 01 00 [07:16:58]Write to MH i2c: E2 08 00 CA 0B 80 13 01 00 00 00 00 00 52 [07:16:58]Write i2c OK [07:16:58]MH_I2C_Read... [07:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:58]Read from MH i2c: E2 [07:16:58]MH_I2C_Read... [07:16:58]Read from MH i2c: E2 0E 00 [07:16:58]MH_I2C_Read... [07:16:58]Read from MH i2c: E2 0E 00 CA 0B 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 0B [07:16:58]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:16:58]wFMCommunicate OK [07:16:58]SAM_PROTO_GetShiftState done [07:16:58]FM_GetShiftState done [07:16:58]opened in 1717632745 [07:16:58]opened+sec_in_day 1717719145 [07:16:58]quantity*price = 14000 [07:16:58]sum+1 = 14001 [07:16:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 7 06.06.2024 07:17 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4232 ФПД: 232417312149704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T071702&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4232&fm=232417312149704&tin=02508201610067®Number=0000000000145775&sum=14000 0 [07:16:59]StoreToDocumentArchive [07:16:59]shift 85 fd 4232 [07:16:59]save to /storage/0085/doc_00004232 [07:16:59]save last doc name /storage/0085/doc_00004232 to /storage/kkm_last_doc_name [07:16:59]save OK [07:16:59]Clear old archive folders... [07:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:16:59]tlvbuf is 019C7AD0 [07:16:59]SAM_PROTO_ClearQueue [07:16:59]wFMCommunicate request_size=4 [07:16:59]MH_SAM_APDU [07:16:59]CAPDU: 80 09 00 00 [07:16:59]Write to MH i2c: E2 08 00 D7 0B 80 09 00 00 00 00 00 00 54 [07:16:59]Write i2c OK [07:16:59]MH_I2C_Read... [07:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:59]Read from MH i2c: E2 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 03 00 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [07:16:59]RAPDU: 90 00 [07:16:59]wFMCommunicate OK [07:16:59]SAM_PROTO_ClearQueue done [07:16:59]KKMCreateOFDPacket [07:16:59]OFDProtocolAddRootSTLVToBuf [07:16:59]FM_MakeSignedData [07:16:59]FM_MakeSignedData [07:16:59]SAM_PROTO_SignData [07:16:59]wFMCommunicate request_size=4 [07:16:59]MH_SAM_APDU [07:16:59]CAPDU: 80 0D 01 02 [07:16:59]Write to MH i2c: E2 08 00 D8 0B 80 0D 01 02 00 00 00 00 5C [07:16:59]Write i2c OK [07:16:59]MH_I2C_Read... [07:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:59]Read from MH i2c: E2 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 03 00 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [07:16:59]RAPDU: 90 00 [07:16:59]wFMCommunicate OK [07:16:59]wFMCommunicate request_size=255 [07:16:59]MH_SAM_APDU [07:16:59]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6E 62 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 [07:16:59]Write to MH i2c: E2 02 01 D9 0B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6E 62 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 00 00 34 [07:16:59]Write i2c OK [07:16:59]MH_I2C_Read... [07:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:59]Read from MH i2c: E2 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 03 00 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [07:16:59]RAPDU: 90 00 [07:16:59]wFMCommunicate OK [07:16:59]wFMCommunicate request_size=32 [07:16:59]MH_SAM_APDU [07:16:59]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 33 36 30 10 04 04 00 88 10 00 00 35 04 06 00 D3 61 DF 54 90 C8 [07:16:59]Write to MH i2c: E2 23 00 DA 0B 80 0D 02 02 1B 00 30 30 30 39 35 39 33 36 30 10 04 04 00 88 10 00 00 35 04 06 00 D3 61 DF 54 90 C8 00 00 13 [07:16:59]Write i2c OK [07:16:59]MH_I2C_Read... [07:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:59]Read from MH i2c: E2 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 03 00 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [07:16:59]RAPDU: 90 00 [07:16:59]wFMCommunicate OK [07:16:59]wFMCommunicate request_size=4 [07:16:59]MH_SAM_APDU [07:16:59]CAPDU: 80 0D 03 02 [07:16:59]Write to MH i2c: E2 08 00 DB 0B 80 0D 03 02 00 00 00 00 61 [07:16:59]Write i2c OK [07:16:59]MH_I2C_Read... [07:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:59]Read from MH i2c: E2 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 0B 00 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 0B 00 DB 0B 00 A4 E9 EA C6 48 1C F9 55 90 00 51 [07:16:59]RAPDU: A4 E9 EA C6 48 1C F9 55 90 00 [07:16:59]wFMCommunicate OK [07:16:59]SAM_PROTO_SignData done [07:16:59]FM_MakeSignedData done [07:16:59]CreateOFDProtocolMessage [07:16:59]wFMCommunicate request_size=4 [07:16:59]MH_SAM_APDU [07:16:59]CAPDU: 80 11 00 00 [07:16:59]Write to MH i2c: E2 08 00 DC 0B 80 11 00 00 00 00 00 00 61 [07:16:59]Write i2c OK [07:16:59]MH_I2C_Read... [07:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:59]Read from MH i2c: E2 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 17 00 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: E2 17 00 DC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 B4 [07:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:16:59]wFMCommunicate OK [07:16:59]CreateOFDProtocolMessage done [07:16:59]OFDSenderStorePacket 4232 [07:16:59]StoreOFDPacket docnum=4232 [07:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 25 01 00 00 CA 4C 1D 01 84 86 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6E 62 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 88 10 00 00 35 04 06 00 D3 61 DF 54 90 C8 A4 E9 EA C6 48 1C F9 55 [07:16:59]CheckFolder [07:16:59]dirname=/storage/ofd_packets [07:16:59]CheckFolder done [07:16:59]ProducePacketName [07:16:59]name=ofd_packets/00004232 [07:16:59]NVStorageSaveData ofd_packets/00004232 [07:16:59]File name is /storage/ofd_packets/00004232 [07:16:59]Write 323 bytes [07:16:59]NVStorageSaveData done [07:16:59]OFDSenderStorePacket done [07:16:59]KKMCreateOFDPacket done [07:16:59]NVStorageSaveData kkm_last_timestamp [07:16:59]File name is /storage/kkm_last_timestamp [07:16:59]Write 4 bytes [07:16:59]NVStorageSaveData done [07:16:59]ExternCall_PrintAddStr [07:16:59]wPrintStart [07:16:59]Write to MH i2c: 01 00 00 DD 0B E8 [07:16:59]Write i2c OK [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: 01 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: 01 07 00 [07:16:59]MH_I2C_Read... [07:16:59]Read from MH i2c: 01 07 00 DD 0B 00 00 00 00 00 FF 0F FD [07:16:59]RasterBufferAndPrint [07:16:59]line Счет N : (3)4484 [07:16:59]line ИНН: 02508201610067 [07:16:59]line Контрольно-Кассовый Чек [07:16:59]line ПРОДАЖА [07:16:59]line Товар: 48747059 [07:16:59]line Сигареты Winston Legend Blue [07:16:59]line 1.000 * 140.00 [07:16:59]line = 140.00 [07:16:59]line НДС 12% НСП 1% [07:16:59]line > о реализуемом товаре [07:16:59]line ИТОГО: 140.00 [07:16:59]line НСП 1% : 1.24 [07:16:59]line НДС 12% : 14.87 [07:16:59]line Наличными: 140.00 [07:16:59]line Безнал.: 0.00 [07:16:59]line Место: АЗС № 116 "Партнер Нефть" [07:16:59]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:16:59]line СНО: Общий режим [07:16:59]line Чек 7 06.06.2024 07:17 [07:16:59]line Смена: 85 ФФД: 1.0 [07:16:59]line ЗНМ: 0300000233 [07:16:59]line РНМ: 0000000000145775 [07:16:59]line Версия ККМ: v1.0 [07:16:59]line ФМ: 0000000000959360 [07:16:59]line ФД: 4232 [07:16:59]line ФПД: 232417312149704 [07:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T071702&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4232&fm=232417312149704&tin=02508201610067®Number=0000000000145775&sum=14000 [07:17:00]line 0 [07:17:00]OFD Sender: Processing packet 4232 [packets to send 2, broken 1] [07:17:00]ProducePacketName [07:17:00]name=ofd_packets/00004232 [07:17:00]OFD Sender: To server: pG, [07:17:00]CommunicateWithHost lk.salyk.kg:30040 [07:17:00]ConnectInit lk.salyk.kg [07:17:00]written 0, free lines is 4095 [07:17:00]Write to MH i2c: 01 00 00 06 0C 12 [07:17:00]Write i2c OK [07:17:00]MH_I2C_Read... [07:17:00]Read from MH i2c: 01 [07:17:00]MH_I2C_Read... [07:17:00]Read from MH i2c: 01 07 00 [07:17:00]MH_I2C_Read... [07:17:00]Read from MH i2c: 01 07 00 06 0C 00 00 00 00 00 AC 0C D1 [07:17:00]RasterBufferAndPrint [07:17:00]line [07:17:00]line [07:17:00]line [07:17:00]line [07:17:00]line [07:17:00]written 0, free lines is 3247 [07:17:00]MH_Cut [07:17:00]Write to MH i2c: D1 01 00 0D 0C 01 EB [07:17:00]Write i2c OK [07:17:00]MH_I2C_Read... [07:17:00]Read from MH i2c: D1 [07:17:00]MH_I2C_Read... [07:17:00]Read from MH i2c: D1 01 00 [07:17:00]MH_I2C_Read... [07:17:00]Read from MH i2c: D1 01 00 0D 0C 00 EA [07:17:00]Write to MH i2c: 01 00 00 0E 0C 1A [07:17:00]Write i2c OK [07:17:00]MH_I2C_Read... [07:17:01]*** Cut start [07:17:01]*** Partial cut [07:17:01]*** CUTSNS_PIN = 1 [07:17:01]*** CUTSNS_PIN = 0 [07:17:01]*** Brake cut motor [07:17:02]Read from MH i2c: 01 [07:17:02]MH_I2C_Read... [07:17:02]*** Stop cut motor [07:17:02]*** Cut end [07:17:02]Read from MH i2c: 01 07 00 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: 01 07 00 0E 0C 00 00 00 00 00 FF 0F 2F [07:17:02]process_action close_receipt done [07:17:02]requested_data is exist [07:17:02]produce_requested_data [07:17:02]requested_item fm.sn is exist - process it [07:17:02]wFMCommunicate request_size=4 [07:17:02]MH_SAM_APDU [07:17:02]CAPDU: 80 11 00 00 [07:17:02]Write to MH i2c: E2 08 00 0F 0C 80 11 00 00 00 00 00 00 95 [07:17:02]Write i2c OK [07:17:02]MH_I2C_Read... [07:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:02]Read from MH i2c: E2 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: E2 17 00 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: E2 17 00 0F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 E8 [07:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:17:02]wFMCommunicate OK [07:17:02]requested_item fd.num is exist - process it [07:17:02]SAM_PROTO_GetFieldsCounters [07:17:02]wFMCommunicate request_size=4 [07:17:02]MH_SAM_APDU [07:17:02]CAPDU: 80 13 00 00 [07:17:02]Write to MH i2c: E2 08 00 10 0C 80 13 00 00 00 00 00 00 98 [07:17:02]Write i2c OK [07:17:02]MH_I2C_Read... [07:17:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:02]Read from MH i2c: E2 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: E2 62 00 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: E2 62 00 10 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 88 10 00 00 0E 04 04 00 55 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 BF [07:17:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 88 10 00 00 0E 04 04 00 55 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 [07:17:02]wFMCommunicate OK [07:17:02]SAM_PROTO_GetFieldsCounters done [07:17:02]requested_item shift.num is exist - process it [07:17:02]requested_item shift.opened is exist - process it [07:17:02]req_shift_opened [07:17:02]FM_GetShiftState [07:17:02]SAM_PROTO_GetShiftState [07:17:02]wFMCommunicate request_size=4 [07:17:02]MH_SAM_APDU [07:17:02]CAPDU: 80 13 01 00 [07:17:02]Write to MH i2c: E2 08 00 11 0C 80 13 01 00 00 00 00 00 9A [07:17:02]Write i2c OK [07:17:02]MH_I2C_Read... [07:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:02]Read from MH i2c: E2 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: E2 0E 00 [07:17:02]MH_I2C_Read... [07:17:02]Read from MH i2c: E2 0E 00 11 0C 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 53 [07:17:02]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:17:02]wFMCommunicate OK [07:17:02]SAM_PROTO_GetShiftState done [07:17:02]FM_GetShiftState done [07:17:02]req_shift_opened done [07:17:02]requested_item shift.open_date is exist - process it [07:17:02]req_shift_open_date [07:17:02]req_shift_open_date done [07:17:02]produce_requested_data done [07:17:02]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4232,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:17:02]process_action_free close_receipt [07:17:02]json_value_free [07:17:02]json_value_free done [07:17:02]process_json_proto returns [07:17:02]Send response to host [07:17:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4232,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:17:02]free response buf [07:17:02]execute_script done [07:17:02]execute_script returns [07:17:02]free content buf [07:17:02]Sock 9.Close socket [07:17:02]Sock 9.Thread stoped [07:17:33]accept exits with 8 [07:17:33]New connection [07:17:33]New thread 3066772836 created [07:17:33]Thread 3066629476 joined [07:17:33]Waiting for new connection... [07:17:33] Sock 8.Parse request [07:17:33]Sock 8.Check first char [07:17:33]Sock 8.First char is OK [07:17:33]request: POST /json_proto HTTP/1.0 [07:17:33]Method: POST [07:17:33]URL: /json_proto [07:17:33]Method is POST - this is cgi request [07:17:33]url: /json_proto [07:17:33]query_string will be loaded in cgi processing [07:17:33]execute_cgi json_proto POST (null) [07:17:33]execute_cgi path=json_proto method=POST [07:17:33]POST find Content-Length [07:17:33]Host: 172.17.56.68:8080 [07:17:33]Content-Length: 694 [07:17:33]Content-Type: application/json [07:17:33] [07:17:33]POST finish read [07:17:33]Found Content-Length = 694 [07:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4485", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:33]execute_script... [07:17: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 : (3)4485", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:33]POST & json_proto [07:17:33]process_json_proto [07:17:33]json parsed OK: [07:17:33]protocol is kg_v1.0 [07:17:33]action value=close_receipt [07:17:33]process_action close_receipt [07:17:33]cmd_close_receipt [07:17:33]MH_GetDate [07:17:33]Write to MH i2c: F0 00 00 12 0C 0D [07:17:33]Write i2c OK [07:17:33]MH_I2C_Read... [07:17:33]Read from MH i2c: F0 [07:17:33]MH_I2C_Read... [07:17:33]Read from MH i2c: F0 09 00 [07:17:33]MH_I2C_Read... [07:17:33]Read from MH i2c: F0 09 00 12 0C 00 91 62 61 66 3A 8F 60 66 5F [07:17:33]GetLastDocTimeStamp 1717658222 [07:17:33]current date 1717658257 [07:17:33]FM_GetShiftState [07:17:33]SAM_PROTO_GetShiftState [07:17:33]wFMCommunicate request_size=4 [07:17:33]MH_SAM_APDU [07:17:33]CAPDU: 80 13 01 00 [07:17:33]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [07:17:33]Write i2c OK [07:17:33]MH_I2C_Read... [07:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:33]Read from MH i2c: E2 [07:17:33]MH_I2C_Read... [07:17:33]Read from MH i2c: E2 0E 00 [07:17:33]MH_I2C_Read... [07:17:33]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 55 [07:17:33]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:17:33]wFMCommunicate OK [07:17:33]SAM_PROTO_GetShiftState done [07:17:33]FM_GetShiftState done [07:17:33]opened in 1717632745 [07:17:33]opened+sec_in_day 1717719145 [07:17:33]quantity*price = 8500 [07:17:33]sum+1 = 8501 [07:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 8 06.06.2024 07:17 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4233 ФПД: 109798934142601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T071737&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4233&fm=109798934142601&tin=02508201610067®Number=0000000000145775&sum=8500 0 [07:17:34]StoreToDocumentArchive [07:17:34]shift 85 fd 4233 [07:17:34]save to /storage/0085/doc_00004233 [07:17:34]save last doc name /storage/0085/doc_00004233 to /storage/kkm_last_doc_name [07:17:34]save OK [07:17:34]Clear old archive folders... [07:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=299 [07:17:34]tlvbuf is 0199BAB0 [07:17:34]SAM_PROTO_ClearQueue [07:17:34]wFMCommunicate request_size=4 [07:17:34]MH_SAM_APDU [07:17:34]CAPDU: 80 09 00 00 [07:17:34]Write to MH i2c: E2 08 00 20 0C 80 09 00 00 00 00 00 00 9E [07:17:34]Write i2c OK [07:17:34]MH_I2C_Read... [07:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:34]Read from MH i2c: E2 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 03 00 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [07:17:34]RAPDU: 90 00 [07:17:34]wFMCommunicate OK [07:17:34]SAM_PROTO_ClearQueue done [07:17:34]KKMCreateOFDPacket [07:17:34]OFDProtocolAddRootSTLVToBuf [07:17:34]FM_MakeSignedData [07:17:34]FM_MakeSignedData [07:17:34]SAM_PROTO_SignData [07:17:34]wFMCommunicate request_size=4 [07:17:34]MH_SAM_APDU [07:17:34]CAPDU: 80 0D 01 02 [07:17:34]Write to MH i2c: E2 08 00 21 0C 80 0D 01 02 00 00 00 00 A6 [07:17:34]Write i2c OK [07:17:34]MH_I2C_Read... [07:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:34]Read from MH i2c: E2 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 03 00 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 03 00 21 0C 00 90 00 A1 [07:17:34]RAPDU: 90 00 [07:17:34]wFMCommunicate OK [07:17:34]wFMCommunicate request_size=255 [07:17:34]MH_SAM_APDU [07:17:34]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 91 62 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [07:17:34]Write to MH i2c: E2 02 01 22 0C 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 91 62 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 CB [07:17:34]Write i2c OK [07:17:34]MH_I2C_Read... [07:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:34]Read from MH i2c: E2 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 03 00 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [07:17:34]RAPDU: 90 00 [07:17:34]wFMCommunicate OK [07:17:34]wFMCommunicate request_size=58 [07:17:34]MH_SAM_APDU [07:17:34]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 89 10 00 00 35 04 06 00 63 DC 8E 77 5E 89 [07:17:34]Write to MH i2c: E2 3D 00 23 0C 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 89 10 00 00 35 04 06 00 63 DC 8E 77 5E 89 00 00 60 [07:17:34]Write i2c OK [07:17:34]MH_I2C_Read... [07:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:34]Read from MH i2c: E2 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 03 00 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [07:17:34]RAPDU: 90 00 [07:17:34]wFMCommunicate OK [07:17:34]wFMCommunicate request_size=4 [07:17:34]MH_SAM_APDU [07:17:34]CAPDU: 80 0D 03 02 [07:17:34]Write to MH i2c: E2 08 00 24 0C 80 0D 03 02 00 00 00 00 AB [07:17:34]Write i2c OK [07:17:34]MH_I2C_Read... [07:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:35]Read from MH i2c: E2 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: E2 0B 00 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: E2 0B 00 24 0C 00 F7 A5 11 BA F6 19 CA 4E 90 00 3A [07:17:35]RAPDU: F7 A5 11 BA F6 19 CA 4E 90 00 [07:17:35]wFMCommunicate OK [07:17:35]SAM_PROTO_SignData done [07:17:35]FM_MakeSignedData done [07:17:35]CreateOFDProtocolMessage [07:17:35]wFMCommunicate request_size=4 [07:17:35]MH_SAM_APDU [07:17:35]CAPDU: 80 11 00 00 [07:17:35]Write to MH i2c: E2 08 00 25 0C 80 11 00 00 00 00 00 00 AB [07:17:35]Write i2c OK [07:17:35]MH_I2C_Read... [07:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:35]Read from MH i2c: E2 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: E2 17 00 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: E2 17 00 25 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 FE [07:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:17:35]wFMCommunicate OK [07:17:35]CreateOFDProtocolMessage done [07:17:35]OFDSenderStorePacket 4233 [07:17:35]StoreOFDPacket docnum=4233 [07:17:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3F 01 00 00 97 19 37 01 C8 37 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 91 62 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 89 10 00 00 35 04 06 00 63 DC 8E 77 5E 89 F7 A5 11 BA F6 19 CA 4E [07:17:35]CheckFolder [07:17:35]dirname=/storage/ofd_packets [07:17:35]CheckFolder done [07:17:35]ProducePacketName [07:17:35]name=ofd_packets/00004233 [07:17:35]NVStorageSaveData ofd_packets/00004233 [07:17:35]File name is /storage/ofd_packets/00004233 [07:17:35]Write 349 bytes [07:17:35]NVStorageSaveData done [07:17:35]OFDSenderStorePacket done [07:17:35]KKMCreateOFDPacket done [07:17:35]NVStorageSaveData kkm_last_timestamp [07:17:35]File name is /storage/kkm_last_timestamp [07:17:35]Write 4 bytes [07:17:35]NVStorageSaveData done [07:17:35]ExternCall_PrintAddStr [07:17:35]wPrintStart [07:17:35]Write to MH i2c: 01 00 00 26 0C 32 [07:17:35]Write i2c OK [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: 01 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: 01 07 00 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: 01 07 00 26 0C 00 00 00 00 00 FF 0F 47 [07:17:35]RasterBufferAndPrint [07:17:35]line Счет N : (3)4485 [07:17:35]line ИНН: 02508201610067 [07:17:35]line Контрольно-Кассовый Чек [07:17:35]line ПРОДАЖА [07:17:35]line Товар: 4700000480364 [07:17:35]line Напиток энерг Nitro экзотик 0.45 ж/б [07:17:35]line 1.000 * 85.00 [07:17:35]line = 85.00 [07:17:35]line НДС 12% НСП 1% [07:17:35]line > о реализуемом товаре [07:17:35]line ИТОГО: 85.00 [07:17:35]line НСП 1% : 0.75 [07:17:35]line НДС 12% : 9.03 [07:17:35]line Наличными: 85.00 [07:17:35]line Безнал.: 0.00 [07:17:35]line Место: АЗС № 116 "Партнер Нефть" [07:17:35]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:17:35]line СНО: Общий режим [07:17:35]line Чек 8 06.06.2024 07:17 [07:17:35]line Смена: 85 ФФД: 1.0 [07:17:35]line ЗНМ: 0300000233 [07:17:35]line РНМ: 0000000000145775 [07:17:35]line Версия ККМ: v1.0 [07:17:35]line ФМ: 0000000000959360 [07:17:35]line ФД: 4233 [07:17:35]line ФПД: 109798934142601 [07:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T071737&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4233&fm=109798934142601&tin=02508201610067®Number=0000000000145775&sum=8500 [07:17:35]line 0 [07:17:35]written 0, free lines is 4095 [07:17:35]Write to MH i2c: 01 00 00 4F 0C 5B [07:17:35]Write i2c OK [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: 01 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: 01 07 00 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: 01 07 00 4F 0C 00 00 00 00 00 AA 0C 18 [07:17:35]RasterBufferAndPrint [07:17:35]line [07:17:35]line [07:17:35]line [07:17:35]line [07:17:35]line [07:17:35]written 0, free lines is 3246 [07:17:35]MH_Cut [07:17:35]Write to MH i2c: D1 01 00 56 0C 01 34 [07:17:35]Write i2c OK [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: D1 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: D1 01 00 [07:17:35]MH_I2C_Read... [07:17:35]Read from MH i2c: D1 01 00 56 0C 00 33 [07:17:35]Write to MH i2c: 01 00 00 57 0C 63 [07:17:35]Write i2c OK [07:17:35]MH_I2C_Read... [07:17:36]*** Cut start [07:17:36]*** Partial cut [07:17:36]*** CUTSNS_PIN = 1 [07:17:36]*** CUTSNS_PIN = 0 [07:17:37]*** Brake cut motor [07:17:37]Read from MH i2c: 01 [07:17:37]MH_I2C_Read... [07:17:37]*** Stop cut motor [07:17:37]*** Cut end [07:17:37]Read from MH i2c: 01 07 00 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: 01 07 00 57 0C 00 00 00 00 00 FF 0F 78 [07:17:37]process_action close_receipt done [07:17:37]requested_data is exist [07:17:37]produce_requested_data [07:17:37]requested_item fm.sn is exist - process it [07:17:37]wFMCommunicate request_size=4 [07:17:37]MH_SAM_APDU [07:17:37]CAPDU: 80 11 00 00 [07:17:37]Write to MH i2c: E2 08 00 58 0C 80 11 00 00 00 00 00 00 DE [07:17:37]Write i2c OK [07:17:37]MH_I2C_Read... [07:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:37]Read from MH i2c: E2 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 17 00 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 17 00 58 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 31 [07:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:17:37]wFMCommunicate OK [07:17:37]requested_item fd.num is exist - process it [07:17:37]SAM_PROTO_GetFieldsCounters [07:17:37]wFMCommunicate request_size=4 [07:17:37]MH_SAM_APDU [07:17:37]CAPDU: 80 13 00 00 [07:17:37]Write to MH i2c: E2 08 00 59 0C 80 13 00 00 00 00 00 00 E1 [07:17:37]Write i2c OK [07:17:37]MH_I2C_Read... [07:17:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:37]Read from MH i2c: E2 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 62 00 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 62 00 59 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 89 10 00 00 0E 04 04 00 55 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 0C [07:17:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 89 10 00 00 0E 04 04 00 55 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 [07:17:37]wFMCommunicate OK [07:17:37]SAM_PROTO_GetFieldsCounters done [07:17:37]requested_item shift.num is exist - process it [07:17:37]requested_item shift.opened is exist - process it [07:17:37]req_shift_opened [07:17:37]FM_GetShiftState [07:17:37]SAM_PROTO_GetShiftState [07:17:37]wFMCommunicate request_size=4 [07:17:37]MH_SAM_APDU [07:17:37]CAPDU: 80 13 01 00 [07:17:37]Write to MH i2c: E2 08 00 5A 0C 80 13 01 00 00 00 00 00 E3 [07:17:37]Write i2c OK [07:17:37]MH_I2C_Read... [07:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:37]Read from MH i2c: E2 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 0E 00 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 0E 00 5A 0C 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 9C [07:17:37]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:17:37]wFMCommunicate OK [07:17:37]SAM_PROTO_GetShiftState done [07:17:37]FM_GetShiftState done [07:17:37]req_shift_opened done [07:17:37]requested_item shift.open_date is exist - process it [07:17:37]req_shift_open_date [07:17:37]req_shift_open_date done [07:17:37]produce_requested_data done [07:17:37]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4233,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:17:37]process_action_free close_receipt [07:17:37]json_value_free [07:17:37]json_value_free done [07:17:37]process_json_proto returns [07:17:37]Send response to host [07:17:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4233,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:17:37]free response buf [07:17:37]execute_script done [07:17:37]execute_script returns [07:17:37]free content buf [07:17:37]Sock 8.Close socket [07:17:37]Sock 8.Thread stoped [07:19:10]ConnectInit Can't connect to host [07:19:10]CommunicateWithHost connect error [07:19:10]CommunicateWithHost err = -1 [07:19:10]OFD Sender: Server communicate error [07:19:10]OFD Sender: Processing packet 4232 [packets to send 3, broken 1] [07:19:10]ProducePacketName [07:19:10]name=ofd_packets/00004232 [07:19:10]OFD Sender: To server: pG, [07:19:10]CommunicateWithHost lk.salyk.kg:30040 [07:19:10]ConnectInit lk.salyk.kg [07:19:10]Connected sock=8 [07:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 25 01 00 00 CA 4C 1D 01 84 86 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6E 62 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 88 10 00 00 35 04 06 00 D3 61 DF 54 90 C8 A4 E9 EA C6 48 1C F9 55 [07:19:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 78 30 47 00 1D 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 88 10 00 00 F4 03 04 00 F0 0E 61 66 B6 04 01 00 00 DE F9 00 73 0C CA 64 0D [07:19:10]CommunicateWithHost err = 0 [07:19:10]CheckOFDResponse [07:19:10]1017 (14) - 77093643461234 [07:19:10]1041 (16) - 0000000000959360 [07:19:10]1040 (4) - 4232 [07:19:10]1012 (4) - 06.06.2024 01:20 [07:19:10]1206 (1) - 0 [07:19:10]OFD Sender: Remove packet 4232 [07:19:10]ProducePacketName [07:19:10]name=ofd_packets/00004232 [07:19:10]NVStorageDeleteData [07:19:11]OFD Sender: Processing packet 4233 [packets to send 2, broken 1] [07:19:11]ProducePacketName [07:19:11]name=ofd_packets/00004233 [07:19:11]OFD Sender: To server: pG, [07:19:11]CommunicateWithHost lk.salyk.kg:30040 [07:19:11]ConnectInit lk.salyk.kg [07:19:11]Connected sock=8 [07:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3F 01 00 00 97 19 37 01 C8 37 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 91 62 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 89 10 00 00 35 04 06 00 63 DC 8E 77 5E 89 F7 A5 11 BA F6 19 CA 4E [07:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 25 A2 47 00 8C 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 39 35 39 33 36 30 10 04 04 00 89 10 00 00 F4 03 04 00 F1 0E 61 66 B6 04 01 00 00 B5 22 2A 36 19 56 6C 5F [07:19:11]CommunicateWithHost err = 0 [07:19:11]CheckOFDResponse [07:19:11]1017 (14) - 77093643461234 [07:19:11]1041 (16) - 0000000000959360 [07:19:11]1040 (4) - 4233 [07:19:11]1012 (4) - 06.06.2024 01:20 [07:19:11]1206 (1) - 0 [07:19:11]OFD Sender: Remove packet 4233 [07:19:11]ProducePacketName [07:19:11]name=ofd_packets/00004233 [07:19:11]NVStorageDeleteData [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:43]accept exits with 9 [07:20:43]New connection [07:20:43]New thread 3066629476 created [07:20:43]Thread 3066772836 joined [07:20:43]Waiting for new connection... [07:20:43] Sock 9.Parse request [07:20:43]Sock 9.Check first char [07:20:43]Sock 9.First char is OK [07:20:43]request: POST /json_proto HTTP/1.0 [07:20:43]Method: POST [07:20:43]URL: /json_proto [07:20:43]Method is POST - this is cgi request [07:20:43]url: /json_proto [07:20:43]query_string will be loaded in cgi processing [07:20:43]execute_cgi json_proto POST (null) [07:20:43]execute_cgi path=json_proto method=POST [07:20:43]POST find Content-Length [07:20:43]Host: 172.17.56.68:8080 [07:20:43]Content-Length: 897 [07:20:43]Content-Type: application/json [07:20:43] [07:20:43]POST finish read [07:20:43]Found Content-Length = 897 [07:20:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4486", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:43]execute_script... [07:20: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 : (3)4486", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:43]POST & json_proto [07:20:43]process_json_proto [07:20:43]json parsed OK: [07:20:43]protocol is kg_v1.0 [07:20:43]action value=close_receipt [07:20:43]process_action close_receipt [07:20:43]cmd_close_receipt [07:20:43]MH_GetDate [07:20:43]Write to MH i2c: F0 00 00 5B 0C 56 [07:20:43]Write i2c OK [07:20:43]MH_I2C_Read... [07:20:43]Read from MH i2c: F0 [07:20:43]MH_I2C_Read... [07:20:43]Read from MH i2c: F0 09 00 [07:20:43]MH_I2C_Read... [07:20:43]Read from MH i2c: F0 09 00 5B 0C 00 4F 63 61 66 3A 8F 60 66 67 [07:20:43]GetLastDocTimeStamp 1717658257 [07:20:43]current date 1717658447 [07:20:43]FM_GetShiftState [07:20:43]SAM_PROTO_GetShiftState [07:20:43]wFMCommunicate request_size=4 [07:20:43]MH_SAM_APDU [07:20:43]CAPDU: 80 13 01 00 [07:20:43]Write to MH i2c: E2 08 00 5C 0C 80 13 01 00 00 00 00 00 E5 [07:20:43]Write i2c OK [07:20:43]MH_I2C_Read... [07:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:43]Read from MH i2c: E2 [07:20:43]MH_I2C_Read... [07:20:43]Read from MH i2c: E2 0E 00 [07:20:43]MH_I2C_Read... [07:20:43]Read from MH i2c: E2 0E 00 5C 0C 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 9E [07:20:43]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:20:43]wFMCommunicate OK [07:20:43]SAM_PROTO_GetShiftState done [07:20:43]FM_GetShiftState done [07:20:43]opened in 1717632745 [07:20:43]opened+sec_in_day 1717719145 [07:20:43]quantity*price = 14000 [07:20:43]sum+1 = 14001 [07:20:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 207.00 НСП 1% : 1.83 НДС 12% : 21.98 Наличными: 207.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 9 06.06.2024 07:20 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4234 ФПД: 229819145728513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T072047&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4234&fm=229819145728513&tin=02508201610067®Number=0000000000145775&sum=20700 0 [07:20:44]StoreToDocumentArchive [07:20:44]shift 85 fd 4234 [07:20:44]save to /storage/0085/doc_00004234 [07:20:44]save last doc name /storage/0085/doc_00004234 to /storage/kkm_last_doc_name [07:20:44]save OK [07:20:44]Clear old archive folders... [07:20:44]ProcessDocumentItem done err = 0, tmpTLVsize=387 [07:20:44]tlvbuf is 0199FCC0 [07:20:44]SAM_PROTO_ClearQueue [07:20:44]wFMCommunicate request_size=4 [07:20:44]MH_SAM_APDU [07:20:44]CAPDU: 80 09 00 00 [07:20:44]Write to MH i2c: E2 08 00 69 0C 80 09 00 00 00 00 00 00 E7 [07:20:44]Write i2c OK [07:20:44]MH_I2C_Read... [07:20:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:44]Read from MH i2c: E2 [07:20:44]MH_I2C_Read... [07:20:44]Read from MH i2c: E2 03 00 [07:20:44]MH_I2C_Read... [07:20:44]Read from MH i2c: E2 03 00 69 0C 00 90 00 E9 [07:20:44]RAPDU: 90 00 [07:20:44]wFMCommunicate OK [07:20:44]SAM_PROTO_ClearQueue done [07:20:44]KKMCreateOFDPacket [07:20:44]OFDProtocolAddRootSTLVToBuf [07:20:44]FM_MakeSignedData [07:20:44]FM_MakeSignedData [07:20:44]SAM_PROTO_SignData [07:20:44]wFMCommunicate request_size=4 [07:20:44]MH_SAM_APDU [07:20:44]CAPDU: 80 0D 01 02 [07:20:44]Write to MH i2c: E2 08 00 6A 0C 80 0D 01 02 00 00 00 00 EF [07:20:44]Write i2c OK [07:20:44]MH_I2C_Read... [07:20:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:44]Read from MH i2c: E2 [07:20:44]MH_I2C_Read... [07:20:44]Read from MH i2c: E2 03 00 [07:20:44]MH_I2C_Read... [07:20:44]Read from MH i2c: E2 03 00 6A 0C 00 90 00 EA [07:20:44]RAPDU: 90 00 [07:20:44]wFMCommunicate OK [07:20:44]wFMCommunicate request_size=255 [07:20:44]MH_SAM_APDU [07:20:44]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [07:20:44]Write to MH i2c: E2 02 01 6B 0C 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 07 [07:20:44]Write i2c OK [07:20:44]MH_I2C_Read... [07:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:44]Read from MH i2c: E2 [07:20:44]MH_I2C_Read... [07:20:44]Read from MH i2c: E2 03 00 [07:20:44]MH_I2C_Read... [07:20:44]Read from MH i2c: E2 03 00 6B 0C 00 90 00 EB [07:20:44]RAPDU: 90 00 [07:20:44]wFMCommunicate OK [07:20:44]wFMCommunicate request_size=146 [07:20:44]MH_SAM_APDU [07:20:44]CAPDU: 80 0D 02 02 8D 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4F 63 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8A 10 00 00 35 04 06 00 D1 04 F0 8B 32 01 [07:20:44]Write to MH i2c: E2 95 00 6C 0C 80 0D 02 02 8D 00 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4F 63 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8A 10 00 00 35 04 06 00 D1 04 F0 8B 32 01 00 00 BB [07:20:44]Write i2c OK [07:20:44]MH_I2C_Read... [07:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:45]Read from MH i2c: E2 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: E2 03 00 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: E2 03 00 6C 0C 00 90 00 EC [07:20:45]RAPDU: 90 00 [07:20:45]wFMCommunicate OK [07:20:45]wFMCommunicate request_size=4 [07:20:45]MH_SAM_APDU [07:20:45]CAPDU: 80 0D 03 02 [07:20:45]Write to MH i2c: E2 08 00 6D 0C 80 0D 03 02 00 00 00 00 F4 [07:20:45]Write i2c OK [07:20:45]MH_I2C_Read... [07:20:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:45]Read from MH i2c: E2 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: E2 0B 00 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: E2 0B 00 6D 0C 00 43 F9 AE 50 AB 72 4E A5 90 00 3F [07:20:45]RAPDU: 43 F9 AE 50 AB 72 4E A5 90 00 [07:20:45]wFMCommunicate OK [07:20:45]SAM_PROTO_SignData done [07:20:45]FM_MakeSignedData done [07:20:45]CreateOFDProtocolMessage [07:20:45]wFMCommunicate request_size=4 [07:20:45]MH_SAM_APDU [07:20:45]CAPDU: 80 11 00 00 [07:20:45]Write to MH i2c: E2 08 00 6E 0C 80 11 00 00 00 00 00 00 F4 [07:20:45]Write i2c OK [07:20:45]MH_I2C_Read... [07:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:45]Read from MH i2c: E2 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: E2 17 00 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: E2 17 00 6E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 47 [07:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:20:45]wFMCommunicate OK [07:20:45]CreateOFDProtocolMessage done [07:20:45]OFDSenderStorePacket 4234 [07:20:45]StoreOFDPacket docnum=4234 [07:20:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 97 01 00 00 31 50 8F 01 21 D1 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4F 63 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8A 10 00 00 35 04 06 00 D1 04 F0 8B 32 01 43 F9 AE 50 AB 72 4E A5 [07:20:45]CheckFolder [07:20:45]dirname=/storage/ofd_packets [07:20:45]CheckFolder done [07:20:45]ProducePacketName [07:20:45]name=ofd_packets/00004234 [07:20:45]NVStorageSaveData ofd_packets/00004234 [07:20:45]File name is /storage/ofd_packets/00004234 [07:20:45]Write 437 bytes [07:20:45]NVStorageSaveData done [07:20:45]OFDSenderStorePacket done [07:20:45]KKMCreateOFDPacket done [07:20:45]NVStorageSaveData kkm_last_timestamp [07:20:45]File name is /storage/kkm_last_timestamp [07:20:45]Write 4 bytes [07:20:45]NVStorageSaveData done [07:20:45]ExternCall_PrintAddStr [07:20:45]wPrintStart [07:20:45]Write to MH i2c: 01 00 00 6F 0C 7B [07:20:45]Write i2c OK [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: 01 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: 01 07 00 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: 01 07 00 6F 0C 00 00 00 00 00 FF 0F 90 [07:20:45]RasterBufferAndPrint [07:20:45]line Счет N : (3)4486 [07:20:45]line ИНН: 02508201610067 [07:20:45]line Контрольно-Кассовый Чек [07:20:45]line ПРОДАЖА [07:20:45]line Товар: 48743570 [07:20:45]line Сигареты Winston XStyle Blue [07:20:45]line 1.000 * 140.00 [07:20:45]line = 140.00 [07:20:45]line НДС 12% НСП 1% [07:20:45]line > о реализуемом товаре [07:20:45]line Товар: 6931280300549 [07:20:45]line Зажигалка Cricket ПН пьезо [07:20:45]line 1.000 * 67.00 [07:20:45]line = 67.00 [07:20:45]line НДС 12% НСП 1% [07:20:45]line > о реализуемом товаре [07:20:45]line ИТОГО: 207.00 [07:20:45]line НСП 1% : 1.83 [07:20:45]line НДС 12% : 21.98 [07:20:45]line Наличными: 207.00 [07:20:45]line Безнал.: 0.00 [07:20:45]line Место: АЗС № 116 "Партнер Нефть" [07:20:45]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:20:45]line СНО: Общий режим [07:20:45]line Чек 9 06.06.2024 07:20 [07:20:45]line Смена: 85 ФФД: 1.0 [07:20:45]line ЗНМ: 0300000233 [07:20:45]line РНМ: 0000000000145775 [07:20:45]line Версия ККМ: v1.0 [07:20:45]line ФМ: 0000000000959360 [07:20:45]line ФД: 4234 [07:20:45]line ФПД: 229819145728513 [07:20:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T072047&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4234&fm=229819145728513&tin=02508201610067®Number=0000000000145775&sum=20700 [07:20:45]line 0 [07:20:45]OFD Sender: Processing packet 4234 [packets to send 2, broken 1] [07:20:45]ProducePacketName [07:20:45]name=ofd_packets/00004234 [07:20:45]OFD Sender: To server: pG, [07:20:45]CommunicateWithHost lk.salyk.kg:30040 [07:20:45]ConnectInit lk.salyk.kg [07:20:45]written 0, free lines is 4095 [07:20:45]Connected sock=10 [07:20:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 97 01 00 00 31 50 8F 01 21 D1 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4F 63 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8A 10 00 00 35 04 06 00 D1 04 F0 8B 32 01 43 F9 AE 50 AB 72 4E A5 [07:20:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 58 5B 47 00 8A CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8A 10 00 00 F4 03 04 00 4F 0F 61 66 B6 04 01 00 00 43 93 A5 B4 04 28 B5 E9 [07:20:45]CommunicateWithHost err = 0 [07:20:45]CheckOFDResponse [07:20:45]1017 (14) - 77093643461234 [07:20:45]1041 (16) - 0000000000959360 [07:20:45]1040 (4) - 4234 [07:20:45]1012 (4) - 06.06.2024 01:22 [07:20:45]1206 (1) - 0 [07:20:45]OFD Sender: Remove packet 4234 [07:20:45]ProducePacketName [07:20:45]name=ofd_packets/00004234 [07:20:45]NVStorageDeleteData [07:20:45]Write to MH i2c: 01 00 00 9D 0C A9 [07:20:45]Write i2c OK [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: 01 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: 01 07 00 [07:20:45]MH_I2C_Read... [07:20:45]Read from MH i2c: 01 07 00 9D 0C 00 00 00 00 00 67 0C 23 [07:20:45]RasterBufferAndPrint [07:20:45]line [07:20:45]line [07:20:45]line [07:20:45]line [07:20:45]line [07:20:45]written 0, free lines is 3182 [07:20:46]MH_Cut [07:20:46]Write to MH i2c: D1 01 00 A4 0C 01 82 [07:20:46]Write i2c OK [07:20:46]MH_I2C_Read... [07:20:46]Read from MH i2c: D1 [07:20:46]MH_I2C_Read... [07:20:46]Read from MH i2c: D1 01 00 [07:20:46]MH_I2C_Read... [07:20:46]Read from MH i2c: D1 01 00 A4 0C 00 81 [07:20:46]Write to MH i2c: 01 00 00 A5 0C B1 [07:20:46]Write i2c OK [07:20:46]MH_I2C_Read... [07:20:46]OFD Sender: No OFD packet to send [07:20:46]*** Cut start [07:20:46]*** Partial cut [07:20:46]*** CUTSNS_PIN = 1 [07:20:47]*** CUTSNS_PIN = 0 [07:20:47]*** Brake cut motor [07:20:47]Read from MH i2c: 01 [07:20:47]MH_I2C_Read... [07:20:47]*** Stop cut motor [07:20:47]*** Cut end [07:20:47]Read from MH i2c: 01 07 00 [07:20:47]MH_I2C_Read... [07:20:47]Read from MH i2c: 01 07 00 A5 0C 00 00 00 00 00 FF 0F C6 [07:20:47]process_action close_receipt done [07:20:47]requested_data is exist [07:20:47]produce_requested_data [07:20:47]requested_item fm.sn is exist - process it [07:20:47]wFMCommunicate request_size=4 [07:20:47]MH_SAM_APDU [07:20:47]CAPDU: 80 11 00 00 [07:20:47]Write to MH i2c: E2 08 00 A6 0C 80 11 00 00 00 00 00 00 2C [07:20:47]Write i2c OK [07:20:47]MH_I2C_Read... [07:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:47]Read from MH i2c: E2 [07:20:47]MH_I2C_Read... [07:20:47]Read from MH i2c: E2 17 00 [07:20:47]MH_I2C_Read... [07:20:47]Read from MH i2c: E2 17 00 A6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 7F [07:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:20:47]wFMCommunicate OK [07:20:47]requested_item fd.num is exist - process it [07:20:47]SAM_PROTO_GetFieldsCounters [07:20:47]wFMCommunicate request_size=4 [07:20:47]MH_SAM_APDU [07:20:47]CAPDU: 80 13 00 00 [07:20:47]Write to MH i2c: E2 08 00 A7 0C 80 13 00 00 00 00 00 00 2F [07:20:47]Write i2c OK [07:20:47]MH_I2C_Read... [07:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:47]Read from MH i2c: E2 [07:20:47]MH_I2C_Read... [07:20:47]Read from MH i2c: E2 62 00 [07:20:47]MH_I2C_Read... [07:20:47]Read from MH i2c: E2 62 00 A7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8A 10 00 00 0E 04 04 00 55 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 5E [07:20:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8A 10 00 00 0E 04 04 00 55 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 [07:20:47]wFMCommunicate OK [07:20:47]SAM_PROTO_GetFieldsCounters done [07:20:47]requested_item shift.num is exist - process it [07:20:47]requested_item shift.opened is exist - process it [07:20:47]req_shift_opened [07:20:47]FM_GetShiftState [07:20:47]SAM_PROTO_GetShiftState [07:20:47]wFMCommunicate request_size=4 [07:20:47]MH_SAM_APDU [07:20:47]CAPDU: 80 13 01 00 [07:20:47]Write to MH i2c: E2 08 00 A8 0C 80 13 01 00 00 00 00 00 31 [07:20:47]Write i2c OK [07:20:47]MH_I2C_Read... [07:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:47]Read from MH i2c: E2 [07:20:47]MH_I2C_Read... [07:20:47]Read from MH i2c: E2 0E 00 [07:20:47]MH_I2C_Read... [07:20:47]Read from MH i2c: E2 0E 00 A8 0C 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 EA [07:20:47]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:20:47]wFMCommunicate OK [07:20:47]SAM_PROTO_GetShiftState done [07:20:47]FM_GetShiftState done [07:20:47]req_shift_opened done [07:20:47]requested_item shift.open_date is exist - process it [07:20:47]req_shift_open_date [07:20:47]req_shift_open_date done [07:20:47]produce_requested_data done [07:20:47]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4234,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:20:47]process_action_free close_receipt [07:20:47]json_value_free [07:20:47]json_value_free done [07:20:47]process_json_proto returns [07:20:47]Send response to host [07:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4234,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:20:47]free response buf [07:20:47]execute_script done [07:20:47]execute_script returns [07:20:47]free content buf [07:20:47]Sock 9.Close socket [07:20:47]Sock 9.Thread stoped [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:22]accept exits with 8 [07:25:22]New connection [07:25:22]New thread 3066772836 created [07:25:22]Thread 3066629476 joined [07:25:22]Waiting for new connection... [07:25:22] Sock 8.Parse request [07:25:22]Sock 8.Check first char [07:25:22]Sock 8.First char is OK [07:25:22]request: POST /json_proto HTTP/1.0 [07:25:22]Method: POST [07:25:22]URL: /json_proto [07:25:22]Method is POST - this is cgi request [07:25:22]url: /json_proto [07:25:22]query_string will be loaded in cgi processing [07:25:22]execute_cgi json_proto POST (null) [07:25:22]execute_cgi path=json_proto method=POST [07:25:22]POST find Content-Length [07:25:22]Host: 172.17.56.68:8080 [07:25:22]Content-Length: 620 [07:25:22]Content-Type: application/json [07:25:22] [07:25:22]POST finish read [07:25:22]Found Content-Length = 620 [07:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4487", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:22]execute_script... [07:25: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 : (3)4487", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:22]POST & json_proto [07:25:22]process_json_proto [07:25:22]json parsed OK: [07:25:22]protocol is kg_v1.0 [07:25:22]action value=close_receipt [07:25:22]process_action close_receipt [07:25:22]cmd_close_receipt [07:25:22]MH_GetDate [07:25:22]Write to MH i2c: F0 00 00 A9 0C A4 [07:25:22]Write i2c OK [07:25:22]MH_I2C_Read... [07:25:22]Read from MH i2c: F0 [07:25:22]MH_I2C_Read... [07:25:22]Read from MH i2c: F0 09 00 [07:25:22]MH_I2C_Read... [07:25:22]Read from MH i2c: F0 09 00 A9 0C 00 66 64 61 66 3A 8F 60 66 CD [07:25:22]GetLastDocTimeStamp 1717658447 [07:25:22]current date 1717658726 [07:25:22]FM_GetShiftState [07:25:22]SAM_PROTO_GetShiftState [07:25:22]wFMCommunicate request_size=4 [07:25:22]MH_SAM_APDU [07:25:22]CAPDU: 80 13 01 00 [07:25:22]Write to MH i2c: E2 08 00 AA 0C 80 13 01 00 00 00 00 00 33 [07:25:22]Write i2c OK [07:25:22]MH_I2C_Read... [07:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:22]Read from MH i2c: E2 [07:25:22]MH_I2C_Read... [07:25:22]Read from MH i2c: E2 0E 00 [07:25:22]MH_I2C_Read... [07:25:22]Read from MH i2c: E2 0E 00 AA 0C 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 EC [07:25:22]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:25:22]wFMCommunicate OK [07:25:22]SAM_PROTO_GetShiftState done [07:25:22]FM_GetShiftState done [07:25:22]opened in 1717632745 [07:25:22]opened+sec_in_day 1717719145 [07:25:22]quantity*price = 13500 [07:25:22]sum+1 = 13501 [07:25:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 10 06.06.2024 07:25 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4235 ФПД: 147569748527133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T072526&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4235&fm=147569748527133&tin=02508201610067®Number=0000000000145775&sum=13500 0 [07:25:23]StoreToDocumentArchive [07:25:23]shift 85 fd 4235 [07:25:23]save to /storage/0085/doc_00004235 [07:25:23]save last doc name /storage/0085/doc_00004235 to /storage/kkm_last_doc_name [07:25:23]save OK [07:25:23]Clear old archive folders... [07:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=274 [07:25:23]tlvbuf is 019A0350 [07:25:23]SAM_PROTO_ClearQueue [07:25:23]wFMCommunicate request_size=4 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 09 00 00 [07:25:23]Write to MH i2c: E2 08 00 B7 0C 80 09 00 00 00 00 00 00 35 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [07:25:23]RAPDU: 90 00 [07:25:23]wFMCommunicate OK [07:25:23]SAM_PROTO_ClearQueue done [07:25:23]KKMCreateOFDPacket [07:25:23]OFDProtocolAddRootSTLVToBuf [07:25:23]FM_MakeSignedData [07:25:23]FM_MakeSignedData [07:25:23]SAM_PROTO_SignData [07:25:23]wFMCommunicate request_size=4 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 0D 01 02 [07:25:23]Write to MH i2c: E2 08 00 B8 0C 80 0D 01 02 00 00 00 00 3D [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [07:25:23]RAPDU: 90 00 [07:25:23]wFMCommunicate OK [07:25:23]wFMCommunicate request_size=255 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 66 64 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 [07:25:23]Write to MH i2c: E2 02 01 B9 0C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 66 64 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 00 00 53 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [07:25:23]RAPDU: 90 00 [07:25:23]wFMCommunicate OK [07:25:23]wFMCommunicate request_size=33 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8B 10 00 00 35 04 06 00 86 36 C2 70 C8 1D [07:25:23]Write to MH i2c: E2 24 00 BA 0C 80 0D 02 02 1C 00 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8B 10 00 00 35 04 06 00 86 36 C2 70 C8 1D 00 00 3D [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [07:25:23]RAPDU: 90 00 [07:25:23]wFMCommunicate OK [07:25:23]wFMCommunicate request_size=4 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 0D 03 02 [07:25:23]Write to MH i2c: E2 08 00 BB 0C 80 0D 03 02 00 00 00 00 42 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 0B 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 0B 00 BB 0C 00 E1 EF 32 2C 71 27 CC 15 90 00 EA [07:25:23]RAPDU: E1 EF 32 2C 71 27 CC 15 90 00 [07:25:23]wFMCommunicate OK [07:25:23]SAM_PROTO_SignData done [07:25:23]FM_MakeSignedData done [07:25:23]CreateOFDProtocolMessage [07:25:23]wFMCommunicate request_size=4 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 11 00 00 [07:25:23]Write to MH i2c: E2 08 00 BC 0C 80 11 00 00 00 00 00 00 42 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 17 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 17 00 BC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 95 [07:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:25:23]wFMCommunicate OK [07:25:23]CreateOFDProtocolMessage done [07:25:23]OFDSenderStorePacket 4235 [07:25:23]StoreOFDPacket docnum=4235 [07:25:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 26 01 00 00 66 08 1E 01 2A F2 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 66 64 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8B 10 00 00 35 04 06 00 86 36 C2 70 C8 1D E1 EF 32 2C 71 27 CC 15 [07:25:23]CheckFolder [07:25:23]dirname=/storage/ofd_packets [07:25:23]CheckFolder done [07:25:23]ProducePacketName [07:25:23]name=ofd_packets/00004235 [07:25:23]NVStorageSaveData ofd_packets/00004235 [07:25:23]File name is /storage/ofd_packets/00004235 [07:25:23]Write 324 bytes [07:25:23]NVStorageSaveData done [07:25:23]OFDSenderStorePacket done [07:25:23]KKMCreateOFDPacket done [07:25:23]NVStorageSaveData kkm_last_timestamp [07:25:23]File name is /storage/kkm_last_timestamp [07:25:23]Write 4 bytes [07:25:23]NVStorageSaveData done [07:25:23]ExternCall_PrintAddStr [07:25:23]wPrintStart [07:25:23]Write to MH i2c: 01 00 00 BD 0C C9 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: 01 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: 01 07 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: 01 07 00 BD 0C 00 00 00 00 00 FF 0F DE [07:25:23]RasterBufferAndPrint [07:25:23]line Счет N : (3)4487 [07:25:23]line ИНН: 02508201610067 [07:25:23]line Контрольно-Кассовый Чек [07:25:23]line ПРОДАЖА [07:25:23]line Товар: 48744997 [07:25:23]line Сигареты Winston Compact Blue [07:25:23]line 1.000 * 135.00 [07:25:23]line = 135.00 [07:25:23]line НДС 12% НСП 1% [07:25:23]line > о реализуемом товаре [07:25:23]line ИТОГО: 135.00 [07:25:23]line НСП 1% : 1.19 [07:25:23]line НДС 12% : 14.34 [07:25:23]line Наличными: 135.00 [07:25:23]line Безнал.: 0.00 [07:25:23]line Место: АЗС № 116 "Партнер Нефть" [07:25:23]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:25:23]line СНО: Общий режим [07:25:23]line Чек 10 06.06.2024 07:25 [07:25:23]line Смена: 85 ФФД: 1.0 [07:25:23]line ЗНМ: 0300000233 [07:25:23]line РНМ: 0000000000145775 [07:25:23]line Версия ККМ: v1.0 [07:25:23]line ФМ: 0000000000959360 [07:25:23]line ФД: 4235 [07:25:23]line ФПД: 147569748527133 [07:25:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T072526&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4235&fm=147569748527133&tin=02508201610067®Number=0000000000145775&sum=13500 [07:25:24]line 0 [07:25:24]OFD Sender: Processing packet 4235 [packets to send 2, broken 1] [07:25:24]ProducePacketName [07:25:24]name=ofd_packets/00004235 [07:25:24]OFD Sender: To server: pG, [07:25:24]CommunicateWithHost lk.salyk.kg:30040 [07:25:24]ConnectInit lk.salyk.kg [07:25:24]written 0, free lines is 4095 [07:25:24]Connected sock=10 [07:25:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 26 01 00 00 66 08 1E 01 2A F2 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 66 64 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8B 10 00 00 35 04 06 00 86 36 C2 70 C8 1D E1 EF 32 2C 71 27 CC 15 [07:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 50 3A 47 00 59 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8B 10 00 00 F4 03 04 00 66 10 61 66 B6 04 01 00 00 04 6A 71 34 DD 83 FE 35 [07:25:24]CommunicateWithHost err = 0 [07:25:24]CheckOFDResponse [07:25:24]1017 (14) - 77093643461234 [07:25:24]1041 (16) - 0000000000959360 [07:25:24]1040 (4) - 4235 [07:25:24]1012 (4) - 06.06.2024 01:27 [07:25:24]1206 (1) - 0 [07:25:24]OFD Sender: Remove packet 4235 [07:25:24]ProducePacketName [07:25:24]name=ofd_packets/00004235 [07:25:24]NVStorageDeleteData [07:25:24]Write to MH i2c: 01 00 00 E6 0C F2 [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: 01 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: 01 07 00 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: 01 07 00 E6 0C 00 00 00 00 00 AF 0C B4 [07:25:24]RasterBufferAndPrint [07:25:24]line [07:25:24]line [07:25:24]line [07:25:24]line [07:25:24]line [07:25:24]written 0, free lines is 3251 [07:25:24]MH_Cut [07:25:24]Write to MH i2c: D1 01 00 ED 0C 01 CB [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: D1 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: D1 01 00 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: D1 01 00 ED 0C 00 CA [07:25:24]Write to MH i2c: 01 00 00 EE 0C FA [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:25]OFD Sender: No OFD packet to send [07:25:25]*** Cut start [07:25:25]*** Partial cut [07:25:25]*** CUTSNS_PIN = 1 [07:25:25]*** CUTSNS_PIN = 0 [07:25:25]*** Brake cut motor [07:25:26]Read from MH i2c: 01 [07:25:26]MH_I2C_Read... [07:25:26]*** Stop cut motor [07:25:26]*** Cut end [07:25:26]Read from MH i2c: 01 07 00 [07:25:26]MH_I2C_Read... [07:25:26]Read from MH i2c: 01 07 00 EE 0C 00 00 00 00 00 FF 0F 0F [07:25:26]process_action close_receipt done [07:25:26]requested_data is exist [07:25:26]produce_requested_data [07:25:26]requested_item fm.sn is exist - process it [07:25:26]wFMCommunicate request_size=4 [07:25:26]MH_SAM_APDU [07:25:26]CAPDU: 80 11 00 00 [07:25:26]Write to MH i2c: E2 08 00 EF 0C 80 11 00 00 00 00 00 00 75 [07:25:26]Write i2c OK [07:25:26]MH_I2C_Read... [07:25:26]Read from MH i2c: E2 [07:25:26]MH_I2C_Read... [07:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:26]Read from MH i2c: E2 17 00 [07:25:26]MH_I2C_Read... [07:25:26]Read from MH i2c: E2 17 00 EF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 C8 [07:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:25:26]wFMCommunicate OK [07:25:26]requested_item fd.num is exist - process it [07:25:26]SAM_PROTO_GetFieldsCounters [07:25:26]wFMCommunicate request_size=4 [07:25:26]MH_SAM_APDU [07:25:26]CAPDU: 80 13 00 00 [07:25:26]Write to MH i2c: E2 08 00 F0 0C 80 13 00 00 00 00 00 00 78 [07:25:26]Write i2c OK [07:25:26]MH_I2C_Read... [07:25:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:26]Read from MH i2c: E2 [07:25:26]MH_I2C_Read... [07:25:26]Read from MH i2c: E2 62 00 [07:25:26]MH_I2C_Read... [07:25:26]Read from MH i2c: E2 62 00 F0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8B 10 00 00 0E 04 04 00 55 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 AB [07:25:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8B 10 00 00 0E 04 04 00 55 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 [07:25:26]wFMCommunicate OK [07:25:26]SAM_PROTO_GetFieldsCounters done [07:25:26]requested_item shift.num is exist - process it [07:25:26]requested_item shift.opened is exist - process it [07:25:26]req_shift_opened [07:25:26]FM_GetShiftState [07:25:26]SAM_PROTO_GetShiftState [07:25:26]wFMCommunicate request_size=4 [07:25:26]MH_SAM_APDU [07:25:26]CAPDU: 80 13 01 00 [07:25:26]Write to MH i2c: E2 08 00 F1 0C 80 13 01 00 00 00 00 00 7A [07:25:26]Write i2c OK [07:25:26]MH_I2C_Read... [07:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:26]Read from MH i2c: E2 [07:25:26]MH_I2C_Read... [07:25:26]Read from MH i2c: E2 0E 00 [07:25:26]MH_I2C_Read... [07:25:26]Read from MH i2c: E2 0E 00 F1 0C 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 33 [07:25:26]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:25:26]wFMCommunicate OK [07:25:26]SAM_PROTO_GetShiftState done [07:25:26]FM_GetShiftState done [07:25:26]req_shift_opened done [07:25:26]requested_item shift.open_date is exist - process it [07:25:26]req_shift_open_date [07:25:26]req_shift_open_date done [07:25:26]produce_requested_data done [07:25:26]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4235,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:25:26]process_action_free close_receipt [07:25:26]json_value_free [07:25:26]json_value_free done [07:25:26]process_json_proto returns [07:25:26]Send response to host [07:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4235,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:25:26]free response buf [07:25:26]execute_script done [07:25:26]execute_script returns [07:25:26]free content buf [07:25:26]Sock 8.Close socket [07:25:26]Sock 8.Thread stoped [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:04]accept exits with 9 [07:39:04]New connection [07:39:04]New thread 3066629476 created [07:39:04]Thread 3066772836 joined [07:39:04]Waiting for new connection... [07:39:04] Sock 9.Parse request [07:39:04]Sock 9.Check first char [07:39:04]Sock 9.First char is OK [07:39:04]request: POST /json_proto HTTP/1.0 [07:39:04]Method: POST [07:39:04]URL: /json_proto [07:39:04]Method is POST - this is cgi request [07:39:04]url: /json_proto [07:39:04]query_string will be loaded in cgi processing [07:39:04]execute_cgi json_proto POST (null) [07:39:04]execute_cgi path=json_proto method=POST [07:39:04]POST find Content-Length [07:39:04]Host: 172.17.56.68:8080 [07:39:04]Content-Length: 643 [07:39:04]Content-Type: application/json [07:39:04] [07:39:04]POST finish read [07:39:04]Found Content-Length = 643 [07:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4488", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:04]execute_script... [07:39:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4488", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:04]POST & json_proto [07:39:04]process_json_proto [07:39:04]json parsed OK: [07:39:04]protocol is kg_v1.0 [07:39:04]action value=close_receipt [07:39:04]process_action close_receipt [07:39:04]cmd_close_receipt [07:39:04]MH_GetDate [07:39:04]Write to MH i2c: F0 00 00 F2 0C ED [07:39:04]Write i2c OK [07:39:04]MH_I2C_Read... [07:39:04]Read from MH i2c: F0 [07:39:04]MH_I2C_Read... [07:39:04]Read from MH i2c: F0 09 00 [07:39:04]MH_I2C_Read... [07:39:04]Read from MH i2c: F0 09 00 F2 0C 00 9C 67 61 66 3A 8F 60 66 4F [07:39:04]GetLastDocTimeStamp 1717658726 [07:39:04]current date 1717659548 [07:39:04]FM_GetShiftState [07:39:04]SAM_PROTO_GetShiftState [07:39:04]wFMCommunicate request_size=4 [07:39:04]MH_SAM_APDU [07:39:04]CAPDU: 80 13 01 00 [07:39:04]Write to MH i2c: E2 08 00 F3 0C 80 13 01 00 00 00 00 00 7C [07:39:04]Write i2c OK [07:39:04]MH_I2C_Read... [07:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:04]Read from MH i2c: E2 [07:39:04]MH_I2C_Read... [07:39:04]Read from MH i2c: E2 0E 00 [07:39:04]MH_I2C_Read... [07:39:04]Read from MH i2c: E2 0E 00 F3 0C 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 35 [07:39:04]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:39:04]wFMCommunicate OK [07:39:04]SAM_PROTO_GetShiftState done [07:39:04]FM_GetShiftState done [07:39:04]opened in 1717632745 [07:39:04]opened+sec_in_day 1717719145 [07:39:04]quantity*price = 5500 [07:39:04]sum+1 = 5501 [07:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 11 06.06.2024 07:39 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4236 ФПД: 103019793919749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T073908&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4236&fm=103019793919749&tin=02508201610067®Number=0000000000145775&sum=5500 0 [07:39:05]StoreToDocumentArchive [07:39:05]shift 85 fd 4236 [07:39:05]save to /storage/0085/doc_00004236 [07:39:05]save last doc name /storage/0085/doc_00004236 to /storage/kkm_last_doc_name [07:39:05]save OK [07:39:05]Clear old archive folders... [07:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=276 [07:39:05]tlvbuf is 019A37A0 [07:39:05]SAM_PROTO_ClearQueue [07:39:05]wFMCommunicate request_size=4 [07:39:05]MH_SAM_APDU [07:39:05]CAPDU: 80 09 00 00 [07:39:05]Write to MH i2c: E2 08 00 00 0D 80 09 00 00 00 00 00 00 7F [07:39:05]Write i2c OK [07:39:05]MH_I2C_Read... [07:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:05]Read from MH i2c: E2 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 03 00 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [07:39:05]RAPDU: 90 00 [07:39:05]wFMCommunicate OK [07:39:05]SAM_PROTO_ClearQueue done [07:39:05]KKMCreateOFDPacket [07:39:05]OFDProtocolAddRootSTLVToBuf [07:39:05]FM_MakeSignedData [07:39:05]FM_MakeSignedData [07:39:05]SAM_PROTO_SignData [07:39:05]wFMCommunicate request_size=4 [07:39:05]MH_SAM_APDU [07:39:05]CAPDU: 80 0D 01 02 [07:39:05]Write to MH i2c: E2 08 00 01 0D 80 0D 01 02 00 00 00 00 87 [07:39:05]Write i2c OK [07:39:05]MH_I2C_Read... [07:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:05]Read from MH i2c: E2 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 03 00 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [07:39:05]RAPDU: 90 00 [07:39:05]wFMCommunicate OK [07:39:05]wFMCommunicate request_size=255 [07:39:05]MH_SAM_APDU [07:39:05]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9C 67 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 [07:39:05]Write to MH i2c: E2 02 01 02 0D 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9C 67 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 00 00 DF [07:39:05]Write i2c OK [07:39:05]MH_I2C_Read... [07:39:05]OFD Sender: No OFD packet to send [07:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:05]Read from MH i2c: E2 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 03 00 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [07:39:05]RAPDU: 90 00 [07:39:05]wFMCommunicate OK [07:39:05]wFMCommunicate request_size=35 [07:39:05]MH_SAM_APDU [07:39:05]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8C 10 00 00 35 04 06 00 5D B2 2A 38 AF 05 [07:39:05]Write to MH i2c: E2 26 00 03 0D 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8C 10 00 00 35 04 06 00 5D B2 2A 38 AF 05 00 00 3E [07:39:05]Write i2c OK [07:39:05]MH_I2C_Read... [07:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:05]Read from MH i2c: E2 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 03 00 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 03 00 03 0D 00 90 00 84 [07:39:05]RAPDU: 90 00 [07:39:05]wFMCommunicate OK [07:39:05]wFMCommunicate request_size=4 [07:39:05]MH_SAM_APDU [07:39:05]CAPDU: 80 0D 03 02 [07:39:05]Write to MH i2c: E2 08 00 04 0D 80 0D 03 02 00 00 00 00 8C [07:39:05]Write i2c OK [07:39:05]MH_I2C_Read... [07:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:05]Read from MH i2c: E2 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 0B 00 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 0B 00 04 0D 00 6A BB 40 7C 18 A2 CD 9B 90 00 90 [07:39:05]RAPDU: 6A BB 40 7C 18 A2 CD 9B 90 00 [07:39:05]wFMCommunicate OK [07:39:05]SAM_PROTO_SignData done [07:39:05]FM_MakeSignedData done [07:39:05]CreateOFDProtocolMessage [07:39:05]wFMCommunicate request_size=4 [07:39:05]MH_SAM_APDU [07:39:05]CAPDU: 80 11 00 00 [07:39:05]Write to MH i2c: E2 08 00 05 0D 80 11 00 00 00 00 00 00 8C [07:39:05]Write i2c OK [07:39:05]MH_I2C_Read... [07:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:05]Read from MH i2c: E2 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 17 00 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: E2 17 00 05 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 DF [07:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:39:05]wFMCommunicate OK [07:39:05]CreateOFDProtocolMessage done [07:39:05]OFDSenderStorePacket 4236 [07:39:05]StoreOFDPacket docnum=4236 [07:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 28 01 00 00 B7 B2 20 01 E3 29 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9C 67 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8C 10 00 00 35 04 06 00 5D B2 2A 38 AF 05 6A BB 40 7C 18 A2 CD 9B [07:39:05]CheckFolder [07:39:05]dirname=/storage/ofd_packets [07:39:05]CheckFolder done [07:39:05]ProducePacketName [07:39:05]name=ofd_packets/00004236 [07:39:05]NVStorageSaveData ofd_packets/00004236 [07:39:05]File name is /storage/ofd_packets/00004236 [07:39:05]Write 326 bytes [07:39:05]NVStorageSaveData done [07:39:05]OFDSenderStorePacket done [07:39:05]KKMCreateOFDPacket done [07:39:05]NVStorageSaveData kkm_last_timestamp [07:39:05]File name is /storage/kkm_last_timestamp [07:39:05]Write 4 bytes [07:39:05]NVStorageSaveData done [07:39:05]ExternCall_PrintAddStr [07:39:05]wPrintStart [07:39:05]Write to MH i2c: 01 00 00 06 0D 13 [07:39:05]Write i2c OK [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: 01 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: 01 07 00 [07:39:05]MH_I2C_Read... [07:39:05]Read from MH i2c: 01 07 00 06 0D 00 00 00 00 00 FF 0F 28 [07:39:05]RasterBufferAndPrint [07:39:05]line Счет N : (3)4488 [07:39:05]line ИНН: 02508201610067 [07:39:05]line Контрольно-Кассовый Чек [07:39:05]line ПРОДАЖА [07:39:05]line Товар: 4700000310043 [07:39:05]line Вода Жалалабат 27 1л [07:39:05]line 1.000 * 55.00 [07:39:05]line = 55.00 [07:39:05]line НДС 12% НСП 1% [07:39:05]line > о реализуемом товаре [07:39:05]line ИТОГО: 55.00 [07:39:05]line НСП 1% : 0.49 [07:39:05]line НДС 12% : 5.84 [07:39:05]line Наличными: 55.00 [07:39:05]line Безнал.: 0.00 [07:39:05]line Место: АЗС № 116 "Партнер Нефть" [07:39:05]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:39:05]line СНО: Общий режим [07:39:05]line Чек 11 06.06.2024 07:39 [07:39:05]line Смена: 85 ФФД: 1.0 [07:39:05]line ЗНМ: 0300000233 [07:39:05]line РНМ: 0000000000145775 [07:39:05]line Версия ККМ: v1.0 [07:39:05]line ФМ: 0000000000959360 [07:39:05]line ФД: 4236 [07:39:05]line ФПД: 103019793919749 [07:39:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T073908&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4236&fm=103019793919749&tin=02508201610067®Number=0000000000145775&sum=5500 [07:39:06]line 0 [07:39:06]OFD Sender: Processing packet 4236 [packets to send 2, broken 1] [07:39:06]ProducePacketName [07:39:06]name=ofd_packets/00004236 [07:39:06]OFD Sender: To server: pG, [07:39:06]CommunicateWithHost lk.salyk.kg:30040 [07:39:06]ConnectInit lk.salyk.kg [07:39:06]written 0, free lines is 4095 [07:39:06]Connected sock=10 [07:39:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 28 01 00 00 B7 B2 20 01 E3 29 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9C 67 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8C 10 00 00 35 04 06 00 5D B2 2A 38 AF 05 6A BB 40 7C 18 A2 CD 9B [07:39:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 79 F4 47 00 C7 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8C 10 00 00 F4 03 04 00 9C 13 61 66 B6 04 01 00 00 B4 10 5B EA 6C F3 81 83 [07:39:06]CommunicateWithHost err = 0 [07:39:06]CheckOFDResponse [07:39:06]1017 (14) - 77093643461234 [07:39:06]1041 (16) - 0000000000959360 [07:39:06]1040 (4) - 4236 [07:39:06]1012 (4) - 06.06.2024 01:40 [07:39:06]1206 (1) - 0 [07:39:06]OFD Sender: Remove packet 4236 [07:39:06]ProducePacketName [07:39:06]name=ofd_packets/00004236 [07:39:06]NVStorageDeleteData [07:39:06]Write to MH i2c: 01 00 00 2E 0D 3B [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: 01 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: 01 07 00 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 C0 0C 0E [07:39:06]RasterBufferAndPrint [07:39:06]line [07:39:06]line [07:39:06]line [07:39:06]line [07:39:06]line [07:39:06]written 0, free lines is 3269 [07:39:06]MH_Cut [07:39:06]Write to MH i2c: D1 01 00 35 0D 01 14 [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: D1 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: D1 01 00 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: D1 01 00 35 0D 00 13 [07:39:06]Write to MH i2c: 01 00 00 36 0D 43 [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:07]OFD Sender: No OFD packet to send [07:39:07]*** Cut start [07:39:07]*** Partial cut [07:39:07]*** CUTSNS_PIN = 1 [07:39:07]*** CUTSNS_PIN = 0 [07:39:07]*** Brake cut motor [07:39:08]Read from MH i2c: 01 [07:39:08]MH_I2C_Read... [07:39:08]*** Stop cut motor [07:39:08]*** Cut end [07:39:08]Read from MH i2c: 01 07 00 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: 01 07 00 36 0D 00 00 00 00 00 FF 0F 58 [07:39:08]process_action close_receipt done [07:39:08]requested_data is exist [07:39:08]produce_requested_data [07:39:08]requested_item fm.sn is exist - process it [07:39:08]wFMCommunicate request_size=4 [07:39:08]MH_SAM_APDU [07:39:08]CAPDU: 80 11 00 00 [07:39:08]Write to MH i2c: E2 08 00 37 0D 80 11 00 00 00 00 00 00 BE [07:39:08]Write i2c OK [07:39:08]MH_I2C_Read... [07:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:08]Read from MH i2c: E2 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 17 00 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 17 00 37 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 11 [07:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:39:08]wFMCommunicate OK [07:39:08]requested_item fd.num is exist - process it [07:39:08]SAM_PROTO_GetFieldsCounters [07:39:08]wFMCommunicate request_size=4 [07:39:08]MH_SAM_APDU [07:39:08]CAPDU: 80 13 00 00 [07:39:08]Write to MH i2c: E2 08 00 38 0D 80 13 00 00 00 00 00 00 C1 [07:39:08]Write i2c OK [07:39:08]MH_I2C_Read... [07:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:08]Read from MH i2c: E2 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 62 00 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 62 00 38 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8C 10 00 00 0E 04 04 00 55 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 F8 [07:39:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8C 10 00 00 0E 04 04 00 55 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 [07:39:08]wFMCommunicate OK [07:39:08]SAM_PROTO_GetFieldsCounters done [07:39:08]requested_item shift.num is exist - process it [07:39:08]requested_item shift.opened is exist - process it [07:39:08]req_shift_opened [07:39:08]FM_GetShiftState [07:39:08]SAM_PROTO_GetShiftState [07:39:08]wFMCommunicate request_size=4 [07:39:08]MH_SAM_APDU [07:39:08]CAPDU: 80 13 01 00 [07:39:08]Write to MH i2c: E2 08 00 39 0D 80 13 01 00 00 00 00 00 C3 [07:39:08]Write i2c OK [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 [07:39:08]MH_I2C_Read... [07:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:08]Read from MH i2c: E2 0E 00 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: E2 0E 00 39 0D 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 7C [07:39:08]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:39:08]wFMCommunicate OK [07:39:08]SAM_PROTO_GetShiftState done [07:39:08]FM_GetShiftState done [07:39:08]req_shift_opened done [07:39:08]requested_item shift.open_date is exist - process it [07:39:08]req_shift_open_date [07:39:08]req_shift_open_date done [07:39:08]produce_requested_data done [07:39:08]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4236,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:39:08]process_action_free close_receipt [07:39:08]json_value_free [07:39:08]json_value_free done [07:39:08]process_json_proto returns [07:39:08]Send response to host [07:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4236,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:39:08]free response buf [07:39:08]execute_script done [07:39:08]execute_script returns [07:39:08]free content buf [07:39:08]Sock 9.Close socket [07:39:08]Sock 9.Thread stoped [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:33]accept exits with 8 [07:42:33]New connection [07:42:33]New thread 3066772836 created [07:42:33]Thread 3066629476 joined [07:42:33]Waiting for new connection... [07:42:33] Sock 8.Parse request [07:42:33]Sock 8.Check first char [07:42:33]Sock 8.First char is OK [07:42:33]request: POST /json_proto HTTP/1.0 [07:42:33]Method: POST [07:42:33]URL: /json_proto [07:42:33]Method is POST - this is cgi request [07:42:33]url: /json_proto [07:42:33]query_string will be loaded in cgi processing [07:42:33]execute_cgi json_proto POST (null) [07:42:33]execute_cgi path=json_proto method=POST [07:42:33]POST find Content-Length [07:42:33]Host: 172.17.56.68:8080 [07:42:33]Content-Length: 656 [07:42:33]Content-Type: application/json [07:42:33] [07:42:33]POST finish read [07:42:33]Found Content-Length = 656 [07:42:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4489", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:33]execute_script... [07: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 : (3)4489", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:33]POST & json_proto [07:42:33]process_json_proto [07:42:33]json parsed OK: [07:42:33]protocol is kg_v1.0 [07:42:33]action value=close_receipt [07:42:33]process_action close_receipt [07:42:33]cmd_close_receipt [07:42:33]MH_GetDate [07:42:33]Write to MH i2c: F0 00 00 3A 0D 36 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: F0 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: F0 09 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: F0 09 00 3A 0D 00 6D 68 61 66 3A 8F 60 66 6A [07:42:33]GetLastDocTimeStamp 1717659548 [07:42:33]current date 1717659757 [07:42:33]FM_GetShiftState [07:42:33]SAM_PROTO_GetShiftState [07:42:33]wFMCommunicate request_size=4 [07:42:33]MH_SAM_APDU [07:42:33]CAPDU: 80 13 01 00 [07:42:33]Write to MH i2c: E2 08 00 3B 0D 80 13 01 00 00 00 00 00 C5 [07:42:33]Write i2c OK [07:42:33]MH_I2C_Read... [07:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:33]Read from MH i2c: E2 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 0E 00 [07:42:33]MH_I2C_Read... [07:42:33]Read from MH i2c: E2 0E 00 3B 0D 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 7E [07:42:33]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:42:33]wFMCommunicate OK [07:42:33]SAM_PROTO_GetShiftState done [07:42:33]FM_GetShiftState done [07:42:33]opened in 1717632745 [07:42:33]opened+sec_in_day 1717719145 [07:42:33]quantity*price = 11300 [07:42:33]sum+1 = 11301 [07:42:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 12 06.06.2024 07:42 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4237 ФПД: 74744893747830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T074237&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4237&fm=74744893747830&tin=02508201610067®Number=0000000000145775&sum=11300 0 [07:42:34]StoreToDocumentArchive [07:42:34]shift 85 fd 4237 [07:42:34]save to /storage/0085/doc_00004237 [07:42:34]save last doc name /storage/0085/doc_00004237 to /storage/kkm_last_doc_name [07:42:34]save OK [07:42:34]Clear old archive folders... [07:42:34]ProcessDocumentItem done err = 0, tmpTLVsize=278 [07:42:34]tlvbuf is 0198AAB0 [07:42:34]SAM_PROTO_ClearQueue [07:42:34]wFMCommunicate request_size=4 [07:42:34]MH_SAM_APDU [07:42:34]CAPDU: 80 09 00 00 [07:42:34]Write to MH i2c: E2 08 00 48 0D 80 09 00 00 00 00 00 00 C7 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [07:42:34]RAPDU: 90 00 [07:42:34]wFMCommunicate OK [07:42:34]SAM_PROTO_ClearQueue done [07:42:34]KKMCreateOFDPacket [07:42:34]OFDProtocolAddRootSTLVToBuf [07:42:34]FM_MakeSignedData [07:42:34]FM_MakeSignedData [07:42:34]SAM_PROTO_SignData [07:42:34]wFMCommunicate request_size=4 [07:42:34]MH_SAM_APDU [07:42:34]CAPDU: 80 0D 01 02 [07:42:34]Write to MH i2c: E2 08 00 49 0D 80 0D 01 02 00 00 00 00 CF [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 49 0D 00 90 00 CA [07:42:34]RAPDU: 90 00 [07:42:34]wFMCommunicate OK [07:42:34]wFMCommunicate request_size=255 [07:42:34]MH_SAM_APDU [07:42:34]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 6D 68 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 [07:42:34]Write to MH i2c: E2 02 01 4A 0D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 6D 68 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 00 00 21 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [07:42:34]RAPDU: 90 00 [07:42:34]wFMCommunicate OK [07:42:34]wFMCommunicate request_size=37 [07:42:34]MH_SAM_APDU [07:42:34]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8D 10 00 00 35 04 06 00 43 FA E6 D7 32 76 [07:42:34]Write to MH i2c: E2 28 00 4B 0D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8D 10 00 00 35 04 06 00 43 FA E6 D7 32 76 00 00 68 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [07:42:34]RAPDU: 90 00 [07:42:34]wFMCommunicate OK [07:42:34]wFMCommunicate request_size=4 [07:42:34]MH_SAM_APDU [07:42:34]CAPDU: 80 0D 03 02 [07:42:34]Write to MH i2c: E2 08 00 4C 0D 80 0D 03 02 00 00 00 00 D4 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 0B 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 0B 00 4C 0D 00 E1 02 9E D1 78 E1 A9 B5 90 00 DE [07:42:34]RAPDU: E1 02 9E D1 78 E1 A9 B5 90 00 [07:42:34]wFMCommunicate OK [07:42:34]SAM_PROTO_SignData done [07:42:34]FM_MakeSignedData done [07:42:34]CreateOFDProtocolMessage [07:42:34]wFMCommunicate request_size=4 [07:42:34]MH_SAM_APDU [07:42:34]CAPDU: 80 11 00 00 [07:42:34]Write to MH i2c: E2 08 00 4D 0D 80 11 00 00 00 00 00 00 D4 [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:34]Read from MH i2c: E2 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 17 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: E2 17 00 4D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 27 [07:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:42:34]wFMCommunicate OK [07:42:34]CreateOFDProtocolMessage done [07:42:34]OFDSenderStorePacket 4237 [07:42:34]StoreOFDPacket docnum=4237 [07:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 45 1B 22 01 86 AE 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 6D 68 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8D 10 00 00 35 04 06 00 43 FA E6 D7 32 76 E1 02 9E D1 78 E1 A9 B5 [07:42:34]CheckFolder [07:42:34]dirname=/storage/ofd_packets [07:42:34]CheckFolder done [07:42:34]ProducePacketName [07:42:34]name=ofd_packets/00004237 [07:42:34]NVStorageSaveData ofd_packets/00004237 [07:42:34]File name is /storage/ofd_packets/00004237 [07:42:34]Write 328 bytes [07:42:34]NVStorageSaveData done [07:42:34]OFDSenderStorePacket done [07:42:34]KKMCreateOFDPacket done [07:42:34]NVStorageSaveData kkm_last_timestamp [07:42:34]File name is /storage/kkm_last_timestamp [07:42:34]Write 4 bytes [07:42:34]NVStorageSaveData done [07:42:34]ExternCall_PrintAddStr [07:42:34]wPrintStart [07:42:34]Write to MH i2c: 01 00 00 4E 0D 5B [07:42:34]Write i2c OK [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 07 00 [07:42:34]MH_I2C_Read... [07:42:34]Read from MH i2c: 01 07 00 4E 0D 00 00 00 00 00 FF 0F 70 [07:42:34]RasterBufferAndPrint [07:42:34]line Счет N : (3)4489 [07:42:34]line ИНН: 02508201610067 [07:42:34]line Контрольно-Кассовый Чек [07:42:34]line ПРОДАЖА [07:42:34]line Товар: 5449000054227 [07:42:34]line Напиток Кока-Кола 1л [07:42:34]line 1.000 * 113.00 [07:42:34]line = 113.00 [07:42:34]line НДС 12% НСП 1% [07:42:34]line > о реализуемом товаре [07:42:34]line ИТОГО: 113.00 [07:42:34]line НСП 1% : 1.00 [07:42:34]line НДС 12% : 12.00 [07:42:34]line Наличными: 113.00 [07:42:34]line Безнал.: 0.00 [07:42:34]line Место: АЗС № 116 "Партнер Нефть" [07:42:34]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:42:34]line СНО: Общий режим [07:42:34]line Чек 12 06.06.2024 07:42 [07:42:34]line Смена: 85 ФФД: 1.0 [07:42:34]line ЗНМ: 0300000233 [07:42:34]line РНМ: 0000000000145775 [07:42:34]line Версия ККМ: v1.0 [07:42:34]line ФМ: 0000000000959360 [07:42:34]line ФД: 4237 [07:42:34]line ФПД: 74744893747830 [07:42:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T074237&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4237&fm=74744893747830&tin=02508201610067®Number=0000000000145775&sum=11300 [07:42:35]line 0 [07:42:35]OFD Sender: Processing packet 4237 [packets to send 2, broken 1] [07:42:35]ProducePacketName [07:42:35]name=ofd_packets/00004237 [07:42:35]OFD Sender: To server: pG, [07:42:35]CommunicateWithHost lk.salyk.kg:30040 [07:42:35]ConnectInit lk.salyk.kg [07:42:35]written 0, free lines is 4095 [07:42:35]Connected sock=10 [07:42:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 45 1B 22 01 86 AE 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 6D 68 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8D 10 00 00 35 04 06 00 43 FA E6 D7 32 76 E1 02 9E D1 78 E1 A9 B5 [07:42:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 7F 38 47 00 24 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 39 35 39 33 36 30 10 04 04 00 8D 10 00 00 F4 03 04 00 6D 14 61 66 B6 04 01 00 00 A3 F3 84 3F 9E DF 7C D3 [07:42:35]CommunicateWithHost err = 0 [07:42:35]CheckOFDResponse [07:42:35]1017 (14) - 77093643461234 [07:42:35]1041 (16) - 0000000000959360 [07:42:35]1040 (4) - 4237 [07:42:35]1012 (4) - 06.06.2024 01:44 [07:42:35]1206 (1) - 0 [07:42:35]OFD Sender: Remove packet 4237 [07:42:35]ProducePacketName [07:42:35]name=ofd_packets/00004237 [07:42:35]NVStorageDeleteData [07:42:35]Write to MH i2c: 01 00 00 76 0D 83 [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: 01 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: 01 07 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: 01 07 00 76 0D 00 00 00 00 00 BF 0C 55 [07:42:35]RasterBufferAndPrint [07:42:35]line [07:42:35]line [07:42:35]line [07:42:35]line [07:42:35]line [07:42:35]written 0, free lines is 3267 [07:42:35]MH_Cut [07:42:35]Write to MH i2c: D1 01 00 7D 0D 01 5C [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: D1 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: D1 01 00 [07:42:35]MH_I2C_Read... [07:42:35]Read from MH i2c: D1 01 00 7D 0D 00 5B [07:42:35]Write to MH i2c: 01 00 00 7E 0D 8B [07:42:35]Write i2c OK [07:42:35]MH_I2C_Read... [07:42:36]OFD Sender: No OFD packet to send [07:42:36]*** Cut start [07:42:36]*** Partial cut [07:42:36]*** CUTSNS_PIN = 1 [07:42:36]*** CUTSNS_PIN = 0 [07:42:36]*** Brake cut motor [07:42:37]Read from MH i2c: 01 [07:42:37]*** Stop cut motor [07:42:37]*** Cut end [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: 01 07 00 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: 01 07 00 7E 0D 00 00 00 00 00 FF 0F A0 [07:42:37]process_action close_receipt done [07:42:37]requested_data is exist [07:42:37]produce_requested_data [07:42:37]requested_item fm.sn is exist - process it [07:42:37]wFMCommunicate request_size=4 [07:42:37]MH_SAM_APDU [07:42:37]CAPDU: 80 11 00 00 [07:42:37]Write to MH i2c: E2 08 00 7F 0D 80 11 00 00 00 00 00 00 06 [07:42:37]Write i2c OK [07:42:37]MH_I2C_Read... [07:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:37]Read from MH i2c: E2 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 17 00 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 17 00 7F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 59 [07:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:42:37]wFMCommunicate OK [07:42:37]requested_item fd.num is exist - process it [07:42:37]SAM_PROTO_GetFieldsCounters [07:42:37]wFMCommunicate request_size=4 [07:42:37]MH_SAM_APDU [07:42:37]CAPDU: 80 13 00 00 [07:42:37]Write to MH i2c: E2 08 00 80 0D 80 13 00 00 00 00 00 00 09 [07:42:37]Write i2c OK [07:42:37]MH_I2C_Read... [07:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:37]Read from MH i2c: E2 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 62 00 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 62 00 80 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8D 10 00 00 0E 04 04 00 55 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 44 [07:42:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8D 10 00 00 0E 04 04 00 55 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 [07:42:37]wFMCommunicate OK [07:42:37]SAM_PROTO_GetFieldsCounters done [07:42:37]requested_item shift.num is exist - process it [07:42:37]requested_item shift.opened is exist - process it [07:42:37]req_shift_opened [07:42:37]FM_GetShiftState [07:42:37]SAM_PROTO_GetShiftState [07:42:37]wFMCommunicate request_size=4 [07:42:37]MH_SAM_APDU [07:42:37]CAPDU: 80 13 01 00 [07:42:37]Write to MH i2c: E2 08 00 81 0D 80 13 01 00 00 00 00 00 0B [07:42:37]Write i2c OK [07:42:37]MH_I2C_Read... [07:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:37]Read from MH i2c: E2 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 0E 00 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 0E 00 81 0D 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 C4 [07:42:37]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:42:37]wFMCommunicate OK [07:42:37]SAM_PROTO_GetShiftState done [07:42:37]FM_GetShiftState done [07:42:37]req_shift_opened done [07:42:37]requested_item shift.open_date is exist - process it [07:42:37]req_shift_open_date [07:42:37]req_shift_open_date done [07:42:37]produce_requested_data done [07:42:37]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4237,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:42:37]process_action_free close_receipt [07:42:37]json_value_free [07:42:37]json_value_free done [07:42:37]process_json_proto returns [07:42:37]Send response to host [07:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4237,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:42:37]free response buf [07:42:37]execute_script done [07:42:37]execute_script returns [07:42:37]free content buf [07:42:37]Sock 8.Close socket [07:42:37]Sock 8.Thread stoped [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:34]accept exits with 9 [07:52:34]New connection [07:52:34]New thread 3066629476 created [07:52:34]Thread 3066772836 joined [07:52:34]Waiting for new connection... [07:52:34] Sock 9.Parse request [07:52:34]Sock 9.Check first char [07:52:34]Sock 9.First char is OK [07:52:34]request: POST /json_proto HTTP/1.0 [07:52:34]Method: POST [07:52:34]URL: /json_proto [07:52:34]Method is POST - this is cgi request [07:52:34]url: /json_proto [07:52:34]query_string will be loaded in cgi processing [07:52:34]execute_cgi json_proto POST (null) [07:52:34]execute_cgi path=json_proto method=POST [07:52:34]POST find Content-Length [07:52:34]Host: 172.17.56.68:8080 [07:52:34]Content-Length: 624 [07:52:34]Content-Type: application/json [07:52:34] [07:52:34]POST finish read [07:52:34]Found Content-Length = 624 [07:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4490", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:34]execute_script... [07:52: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 : (3)4490", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:34]POST & json_proto [07:52:34]process_json_proto [07:52:34]json parsed OK: [07:52:34]protocol is kg_v1.0 [07:52:34]action value=close_receipt [07:52:34]process_action close_receipt [07:52:34]cmd_close_receipt [07:52:34]MH_GetDate [07:52:34]Write to MH i2c: F0 00 00 82 0D 7E [07:52:34]Write i2c OK [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: F0 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: F0 09 00 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: F0 09 00 82 0D 00 C6 6A 61 66 3A 8F 60 66 0D [07:52:34]GetLastDocTimeStamp 1717659757 [07:52:34]current date 1717660358 [07:52:34]FM_GetShiftState [07:52:34]SAM_PROTO_GetShiftState [07:52:34]wFMCommunicate request_size=4 [07:52:34]MH_SAM_APDU [07:52:34]CAPDU: 80 13 01 00 [07:52:34]Write to MH i2c: E2 08 00 83 0D 80 13 01 00 00 00 00 00 0D [07:52:34]Write i2c OK [07:52:34]MH_I2C_Read... [07:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:34]Read from MH i2c: E2 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: E2 0E 00 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: E2 0E 00 83 0D 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 C6 [07:52:34]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:52:34]wFMCommunicate OK [07:52:34]SAM_PROTO_GetShiftState done [07:52:34]FM_GetShiftState done [07:52:34]opened in 1717632745 [07:52:34]opened+sec_in_day 1717719145 [07:52:34]quantity*price = 13800 [07:52:34]sum+1 = 13801 [07:52:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 13 06.06.2024 07:52 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4238 ФПД: 69667400320504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T075238&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4238&fm=69667400320504&tin=02508201610067®Number=0000000000145775&sum=13800 0 [07:52:35]StoreToDocumentArchive [07:52:35]shift 85 fd 4238 [07:52:35]save to /storage/0085/doc_00004238 [07:52:35]save last doc name /storage/0085/doc_00004238 to /storage/kkm_last_doc_name [07:52:35]save OK [07:52:35]Clear old archive folders... [07:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=278 [07:52:35]tlvbuf is 0199B470 [07:52:35]SAM_PROTO_ClearQueue [07:52:35]wFMCommunicate request_size=4 [07:52:35]MH_SAM_APDU [07:52:35]CAPDU: 80 09 00 00 [07:52:35]Write to MH i2c: E2 08 00 90 0D 80 09 00 00 00 00 00 00 0F [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:35]Read from MH i2c: E2 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 03 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [07:52:35]RAPDU: 90 00 [07:52:35]wFMCommunicate OK [07:52:35]SAM_PROTO_ClearQueue done [07:52:35]KKMCreateOFDPacket [07:52:35]OFDProtocolAddRootSTLVToBuf [07:52:35]FM_MakeSignedData [07:52:35]FM_MakeSignedData [07:52:35]SAM_PROTO_SignData [07:52:35]wFMCommunicate request_size=4 [07:52:35]MH_SAM_APDU [07:52:35]CAPDU: 80 0D 01 02 [07:52:35]Write to MH i2c: E2 08 00 91 0D 80 0D 01 02 00 00 00 00 17 [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:35]Read from MH i2c: E2 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 03 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [07:52:35]RAPDU: 90 00 [07:52:35]wFMCommunicate OK [07:52:35]wFMCommunicate request_size=255 [07:52:35]MH_SAM_APDU [07:52:35]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C6 6A 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 [07:52:35]Write to MH i2c: E2 02 01 92 0D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C6 6A 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 00 00 39 [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:35]Read from MH i2c: E2 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 03 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 03 00 92 0D 00 90 00 13 [07:52:35]RAPDU: 90 00 [07:52:35]wFMCommunicate OK [07:52:35]wFMCommunicate request_size=37 [07:52:35]MH_SAM_APDU [07:52:35]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8E 10 00 00 35 04 06 00 3F 5C B4 A6 05 F8 [07:52:35]Write to MH i2c: E2 28 00 93 0D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8E 10 00 00 35 04 06 00 3F 5C B4 A6 05 F8 00 00 01 [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:35]Read from MH i2c: E2 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 03 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 03 00 93 0D 00 90 00 14 [07:52:35]RAPDU: 90 00 [07:52:35]wFMCommunicate OK [07:52:35]wFMCommunicate request_size=4 [07:52:35]MH_SAM_APDU [07:52:35]CAPDU: 80 0D 03 02 [07:52:35]Write to MH i2c: E2 08 00 94 0D 80 0D 03 02 00 00 00 00 1C [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:35]Read from MH i2c: E2 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 0B 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 0B 00 94 0D 00 9B D1 D2 B6 A0 D8 F6 9B 90 00 1A [07:52:35]RAPDU: 9B D1 D2 B6 A0 D8 F6 9B 90 00 [07:52:35]wFMCommunicate OK [07:52:35]SAM_PROTO_SignData done [07:52:35]FM_MakeSignedData done [07:52:35]CreateOFDProtocolMessage [07:52:35]wFMCommunicate request_size=4 [07:52:35]MH_SAM_APDU [07:52:35]CAPDU: 80 11 00 00 [07:52:35]Write to MH i2c: E2 08 00 95 0D 80 11 00 00 00 00 00 00 1C [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:35]Read from MH i2c: E2 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 17 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 17 00 95 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 6F [07:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:52:35]wFMCommunicate OK [07:52:35]CreateOFDProtocolMessage done [07:52:35]OFDSenderStorePacket 4238 [07:52:35]StoreOFDPacket docnum=4238 [07:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 BF A5 22 01 5D 20 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C6 6A 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8E 10 00 00 35 04 06 00 3F 5C B4 A6 05 F8 9B D1 D2 B6 A0 D8 F6 9B [07:52:35]CheckFolder [07:52:35]dirname=/storage/ofd_packets [07:52:35]CheckFolder done [07:52:35]ProducePacketName [07:52:35]name=ofd_packets/00004238 [07:52:35]NVStorageSaveData ofd_packets/00004238 [07:52:35]File name is /storage/ofd_packets/00004238 [07:52:35]Write 328 bytes [07:52:35]NVStorageSaveData done [07:52:35]OFDSenderStorePacket done [07:52:35]KKMCreateOFDPacket done [07:52:35]NVStorageSaveData kkm_last_timestamp [07:52:35]File name is /storage/kkm_last_timestamp [07:52:35]Write 4 bytes [07:52:35]NVStorageSaveData done [07:52:35]ExternCall_PrintAddStr [07:52:35]wPrintStart [07:52:35]Write to MH i2c: 01 00 00 96 0D A3 [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: 01 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: 01 07 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: 01 07 00 96 0D 00 00 00 00 00 FF 0F B8 [07:52:35]RasterBufferAndPrint [07:52:35]line Счет N : (3)4490 [07:52:35]line ИНН: 02508201610067 [07:52:35]line Контрольно-Кассовый Чек [07:52:35]line ПРОДАЖА [07:52:35]line Товар: 4640030092499 [07:52:35]line Сигареты ESSE SENSE Himalaya [07:52:35]line 1.000 * 138.00 [07:52:35]line = 138.00 [07:52:35]line НДС 12% НСП 1% [07:52:35]line > о реализуемом товаре [07:52:35]line ИТОГО: 138.00 [07:52:35]line НСП 1% : 1.22 [07:52:35]line НДС 12% : 14.65 [07:52:35]line Наличными: 138.00 [07:52:35]line Безнал.: 0.00 [07:52:35]line Место: АЗС № 116 "Партнер Нефть" [07:52:35]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [07:52:35]line СНО: Общий режим [07:52:35]line Чек 13 06.06.2024 07:52 [07:52:35]line Смена: 85 ФФД: 1.0 [07:52:35]line ЗНМ: 0300000233 [07:52:35]line РНМ: 0000000000145775 [07:52:35]line Версия ККМ: v1.0 [07:52:35]line ФМ: 0000000000959360 [07:52:35]line ФД: 4238 [07:52:35]line ФПД: 69667400320504 [07:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T075238&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4238&fm=69667400320504&tin=02508201610067®Number=0000000000145775&sum=13800 [07:52:36]line 0 [07:52:36]OFD Sender: Processing packet 4238 [packets to send 2, broken 1] [07:52:36]ProducePacketName [07:52:36]name=ofd_packets/00004238 [07:52:36]OFD Sender: To server: pG, [07:52:36]CommunicateWithHost lk.salyk.kg:30040 [07:52:36]ConnectInit lk.salyk.kg [07:52:36]written 0, free lines is 4095 [07:52:36]Connected sock=10 [07:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 BF A5 22 01 5D 20 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C6 6A 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8E 10 00 00 35 04 06 00 3F 5C B4 A6 05 F8 9B D1 D2 B6 A0 D8 F6 9B [07:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 BE E4 47 00 90 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8E 10 00 00 F4 03 04 00 C6 16 61 66 B6 04 01 00 00 AE A3 89 81 2B 85 26 A0 [07:52:36]CommunicateWithHost err = 0 [07:52:36]CheckOFDResponse [07:52:36]1017 (14) - 77093643461234 [07:52:36]1041 (16) - 0000000000959360 [07:52:36]1040 (4) - 4238 [07:52:36]1012 (4) - 06.06.2024 01:54 [07:52:36]1206 (1) - 0 [07:52:36]OFD Sender: Remove packet 4238 [07:52:36]ProducePacketName [07:52:36]name=ofd_packets/00004238 [07:52:36]NVStorageDeleteData [07:52:36]Write to MH i2c: 01 00 00 BF 0D CC [07:52:36]Write i2c OK [07:52:36]MH_I2C_Read... [07:52:36]Read from MH i2c: 01 [07:52:36]MH_I2C_Read... [07:52:36]Read from MH i2c: 01 07 00 [07:52:36]MH_I2C_Read... [07:52:36]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 AC 0C 8B [07:52:36]RasterBufferAndPrint [07:52:36]line [07:52:36]line [07:52:36]line [07:52:36]line [07:52:36]line [07:52:36]written 0, free lines is 3247 [07:52:36]MH_Cut [07:52:36]Write to MH i2c: D1 01 00 C6 0D 01 A5 [07:52:36]Write i2c OK [07:52:36]MH_I2C_Read... [07:52:36]Read from MH i2c: D1 [07:52:36]MH_I2C_Read... [07:52:36]Read from MH i2c: D1 01 00 [07:52:36]MH_I2C_Read... [07:52:36]Read from MH i2c: D1 01 00 C6 0D 00 A4 [07:52:36]Write to MH i2c: 01 00 00 C7 0D D4 [07:52:36]Write i2c OK [07:52:36]MH_I2C_Read... [07:52:36]OFD Sender: No OFD packet to send [07:52:37]*** Cut start [07:52:37]*** Partial cut [07:52:37]*** CUTSNS_PIN = 1 [07:52:37]*** CUTSNS_PIN = 0 [07:52:37]*** Brake cut motor [07:52:38]Read from MH i2c: 01 [07:52:38]MH_I2C_Read... [07:52:38]*** Stop cut motor [07:52:38]*** Cut end [07:52:38]Read from MH i2c: 01 07 00 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: 01 07 00 C7 0D 00 00 00 00 00 FF 0F E9 [07:52:38]process_action close_receipt done [07:52:38]requested_data is exist [07:52:38]produce_requested_data [07:52:38]requested_item fm.sn is exist - process it [07:52:38]wFMCommunicate request_size=4 [07:52:38]MH_SAM_APDU [07:52:38]CAPDU: 80 11 00 00 [07:52:38]Write to MH i2c: E2 08 00 C8 0D 80 11 00 00 00 00 00 00 4F [07:52:38]Write i2c OK [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 [07:52:38]MH_I2C_Read... [07:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:38]Read from MH i2c: E2 17 00 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 17 00 C8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 A2 [07:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [07:52:38]wFMCommunicate OK [07:52:38]requested_item fd.num is exist - process it [07:52:38]SAM_PROTO_GetFieldsCounters [07:52:38]wFMCommunicate request_size=4 [07:52:38]MH_SAM_APDU [07:52:38]CAPDU: 80 13 00 00 [07:52:38]Write to MH i2c: E2 08 00 C9 0D 80 13 00 00 00 00 00 00 52 [07:52:38]Write i2c OK [07:52:38]MH_I2C_Read... [07:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:38]Read from MH i2c: E2 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 62 00 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 62 00 C9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8E 10 00 00 0E 04 04 00 55 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 91 [07:52:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8E 10 00 00 0E 04 04 00 55 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 [07:52:38]wFMCommunicate OK [07:52:38]SAM_PROTO_GetFieldsCounters done [07:52:38]requested_item shift.num is exist - process it [07:52:38]requested_item shift.opened is exist - process it [07:52:38]req_shift_opened [07:52:38]FM_GetShiftState [07:52:38]SAM_PROTO_GetShiftState [07:52:38]wFMCommunicate request_size=4 [07:52:38]MH_SAM_APDU [07:52:38]CAPDU: 80 13 01 00 [07:52:38]Write to MH i2c: E2 08 00 CA 0D 80 13 01 00 00 00 00 00 54 [07:52:38]Write i2c OK [07:52:38]MH_I2C_Read... [07:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:38]Read from MH i2c: E2 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 0E 00 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 0E 00 CA 0D 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 0D [07:52:38]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [07:52:38]wFMCommunicate OK [07:52:38]SAM_PROTO_GetShiftState done [07:52:38]FM_GetShiftState done [07:52:38]req_shift_opened done [07:52:38]requested_item shift.open_date is exist - process it [07:52:38]req_shift_open_date [07:52:38]req_shift_open_date done [07:52:38]produce_requested_data done [07:52:38]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4238,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [07:52:38]process_action_free close_receipt [07:52:38]json_value_free [07:52:38]json_value_free done [07:52:38]process_json_proto returns [07:52:38]Send response to host [07:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4238,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [07:52:38]free response buf [07:52:38]execute_script done [07:52:38]execute_script returns [07:52:38]free content buf [07:52:38]Sock 9.Close socket [07:52:38]Sock 9.Thread stoped [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]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:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:45]accept exits with 8 [08:21:45]New connection [08:21:45]New thread 3066772836 created [08:21:45]Thread 3066629476 joined [08:21:45]Waiting for new connection... [08:21:45] Sock 8.Parse request [08:21:45]Sock 8.Check first char [08:21:45]Sock 8.First char is OK [08:21:45]request: POST /json_proto HTTP/1.0 [08:21:45]Method: POST [08:21:45]URL: /json_proto [08:21:45]Method is POST - this is cgi request [08:21:45]url: /json_proto [08:21:45]query_string will be loaded in cgi processing [08:21:45]execute_cgi json_proto POST (null) [08:21:45]execute_cgi path=json_proto method=POST [08:21:45]POST find Content-Length [08:21:45]Host: 172.17.56.68:8080 [08:21:45]Content-Length: 1067 [08:21:45]Content-Type: application/json [08:21:45] [08:21:45]POST finish read [08:21:45]Found Content-Length = 1067 [08:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4491", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:45]execute_script... [08:21: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 : (3)4491", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:45]POST & json_proto [08:21:45]process_json_proto [08:21:45]json parsed OK: [08:21:45]protocol is kg_v1.0 [08:21:45]action value=close_receipt [08:21:45]process_action close_receipt [08:21:45]cmd_close_receipt [08:21:45]MH_GetDate [08:21:45]Write to MH i2c: F0 00 00 CB 0D C7 [08:21:45]Write i2c OK [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: F0 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: F0 09 00 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: F0 09 00 CB 0D 00 9D 71 61 66 3A 8F 60 66 34 [08:21:45]GetLastDocTimeStamp 1717660358 [08:21:45]current date 1717662109 [08:21:45]FM_GetShiftState [08:21:45]SAM_PROTO_GetShiftState [08:21:45]wFMCommunicate request_size=4 [08:21:45]MH_SAM_APDU [08:21:45]CAPDU: 80 13 01 00 [08:21:45]Write to MH i2c: E2 08 00 CC 0D 80 13 01 00 00 00 00 00 56 [08:21:45]Write i2c OK [08:21:45]MH_I2C_Read... [08:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:45]Read from MH i2c: E2 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 0E 00 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 0E 00 CC 0D 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 0F [08:21:45]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [08:21:45]wFMCommunicate OK [08:21:45]SAM_PROTO_GetShiftState done [08:21:45]FM_GetShiftState done [08:21:45]opened in 1717632745 [08:21:45]opened+sec_in_day 1717719145 [08:21:45]quantity*price = 9500 [08:21:45]sum+1 = 9501 [08:21:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.87 НДС 12% : 34.51 Наличными: 0.00 Безнал.: 325.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 14 06.06.2024 08:21 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959360 ФД: 4239 ФПД: 22960909652231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T082149&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4239&fm=22960909652231&tin=02508201610067®Number=0000000000145775&sum=32500 0 [08:21:46]StoreToDocumentArchive [08:21:46]shift 85 fd 4239 [08:21:46]save to /storage/0085/doc_00004239 [08:21:46]save last doc name /storage/0085/doc_00004239 to /storage/kkm_last_doc_name [08:21:46]save OK [08:21:46]Clear old archive folders... [08:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=388 [08:21:46]tlvbuf is 019C0F40 [08:21:46]SAM_PROTO_ClearQueue [08:21:46]wFMCommunicate request_size=4 [08:21:46]MH_SAM_APDU [08:21:46]CAPDU: 80 09 00 00 [08:21:46]Write to MH i2c: E2 08 00 D9 0D 80 09 00 00 00 00 00 00 58 [08:21:46]Write i2c OK [08:21:46]MH_I2C_Read... [08:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:46]Read from MH i2c: E2 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 03 00 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [08:21:46]RAPDU: 90 00 [08:21:46]wFMCommunicate OK [08:21:46]SAM_PROTO_ClearQueue done [08:21:46]KKMCreateOFDPacket [08:21:46]OFDProtocolAddRootSTLVToBuf [08:21:46]FM_MakeSignedData [08:21:46]FM_MakeSignedData [08:21:46]SAM_PROTO_SignData [08:21:46]wFMCommunicate request_size=4 [08:21:46]MH_SAM_APDU [08:21:46]CAPDU: 80 0D 01 02 [08:21:46]Write to MH i2c: E2 08 00 DA 0D 80 0D 01 02 00 00 00 00 60 [08:21:46]Write i2c OK [08:21:46]MH_I2C_Read... [08:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:46]Read from MH i2c: E2 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 03 00 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [08:21:46]RAPDU: 90 00 [08:21:46]wFMCommunicate OK [08:21:46]wFMCommunicate request_size=255 [08:21:46]MH_SAM_APDU [08:21:46]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [08:21:46]Write to MH i2c: E2 02 01 DB 0D 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 40 [08:21:46]Write i2c OK [08:21:46]MH_I2C_Read... [08:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:46]Read from MH i2c: E2 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 03 00 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [08:21:46]RAPDU: 90 00 [08:21:46]wFMCommunicate OK [08:21:46]wFMCommunicate request_size=147 [08:21:46]MH_SAM_APDU [08:21:46]CAPDU: 80 0D 02 02 8E F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9D 71 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8F 10 00 00 35 04 06 00 14 E2 00 DD 11 07 [08:21:46]Write to MH i2c: E2 96 00 DC 0D 80 0D 02 02 8E 00 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9D 71 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8F 10 00 00 35 04 06 00 14 E2 00 DD 11 07 00 00 8C [08:21:46]Write i2c OK [08:21:46]MH_I2C_Read... [08:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:46]Read from MH i2c: E2 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 03 00 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [08:21:46]RAPDU: 90 00 [08:21:46]wFMCommunicate OK [08:21:46]wFMCommunicate request_size=4 [08:21:46]MH_SAM_APDU [08:21:46]CAPDU: 80 0D 03 02 [08:21:46]Write to MH i2c: E2 08 00 DD 0D 80 0D 03 02 00 00 00 00 65 [08:21:46]Write i2c OK [08:21:46]MH_I2C_Read... [08:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:46]Read from MH i2c: E2 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 0B 00 [08:21:46]MH_I2C_Read... [08:21:46]Read from MH i2c: E2 0B 00 DD 0D 00 99 4D C8 09 A6 4B AB 6F 90 00 28 [08:21:47]RAPDU: 99 4D C8 09 A6 4B AB 6F 90 00 [08:21:47]wFMCommunicate OK [08:21:47]SAM_PROTO_SignData done [08:21:47]FM_MakeSignedData done [08:21:47]CreateOFDProtocolMessage [08:21:47]wFMCommunicate request_size=4 [08:21:47]MH_SAM_APDU [08:21:47]CAPDU: 80 11 00 00 [08:21:47]Write to MH i2c: E2 08 00 DE 0D 80 11 00 00 00 00 00 00 65 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 17 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 17 00 DE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 B8 [08:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [08:21:47]wFMCommunicate OK [08:21:47]CreateOFDProtocolMessage done [08:21:47]OFDSenderStorePacket 4239 [08:21:47]StoreOFDPacket docnum=4239 [08:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 98 01 00 00 F3 A4 90 01 A7 9F 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9D 71 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8F 10 00 00 35 04 06 00 14 E2 00 DD 11 07 99 4D C8 09 A6 4B AB 6F [08:21:47]CheckFolder [08:21:47]dirname=/storage/ofd_packets [08:21:47]CheckFolder done [08:21:47]ProducePacketName [08:21:47]name=ofd_packets/00004239 [08:21:47]NVStorageSaveData ofd_packets/00004239 [08:21:47]File name is /storage/ofd_packets/00004239 [08:21:47]Write 438 bytes [08:21:47]NVStorageSaveData done [08:21:47]OFDSenderStorePacket done [08:21:47]KKMCreateOFDPacket done [08:21:47]NVStorageSaveData kkm_last_timestamp [08:21:47]File name is /storage/kkm_last_timestamp [08:21:47]Write 4 bytes [08:21:47]NVStorageSaveData done [08:21:47]ExternCall_PrintAddStr [08:21:47]wPrintStart [08:21:47]Write to MH i2c: 01 00 00 DF 0D EC [08:21:47]OFD Sender: Processing packet 4239 [packets to send 2, broken 1] [08:21:47]ProducePacketName [08:21:47]name=ofd_packets/00004239 [08:21:47]OFD Sender: To server: pG, [08:21:47]CommunicateWithHost lk.salyk.kg:30040 [08:21:47]ConnectInit lk.salyk.kg [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 07 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 07 00 DF 0D 00 00 00 00 00 FF 0F 01 [08:21:47]RasterBufferAndPrint [08:21:47]line Счет N : (3)4491 [08:21:47]line ИНН: 02508201610067 [08:21:47]line Контрольно-Кассовый Чек [08:21:47]line ПРОДАЖА [08:21:47]line Товар: 2000036190018 [08:21:47]line Кофе Американо XL(GABB TRADE) [08:21:47]line 1.000 * 95.00 [08:21:47]line = 95.00 [08:21:47]line НДС 12% НСП 1% [08:21:47]line > о реализуемом товаре [08:21:47]line Товар: 2000036240010 [08:21:47]line Кофе Латте (GABB TRADE) [08:21:47]line 2.000 * 115.00 [08:21:47]line = 230.00 [08:21:47]line НДС 12% НСП 1% [08:21:47]line > о реализуемом товаре [08:21:47]line ИТОГО: 325.00 [08:21:47]line НСП 1% : 2.87 [08:21:47]line НДС 12% : 34.51 [08:21:47]line Наличными: 0.00 [08:21:47]line Безнал.: 325.00 [08:21:47]line Место: АЗС № 116 "Партнер Нефть" [08:21:47]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [08:21:47]line СНО: Общий режим [08:21:47]line Чек 14 06.06.2024 08:21 [08:21:47]line Смена: 85 ФФД: 1.0 [08:21:47]line ЗНМ: 0300000233 [08:21:47]line РНМ: 0000000000145775 [08:21:47]line Версия ККМ: v1.0 [08:21:47]line Платежная система: Бакай Банк [08:21:47]line ФМ: 0000000000959360 [08:21:47]line ФД: 4239 [08:21:47]line ФПД: 22960909652231 [08:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T082149&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4239&fm=22960909652231&tin=02508201610067®Number=0000000000145775&sum=32500 [08:21:47]line 0 [08:21:47]written 0, free lines is 4095 [08:21:47]Connected sock=10 [08:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 98 01 00 00 F3 A4 90 01 A7 9F 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 7E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 9D 71 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8F 10 00 00 35 04 06 00 14 E2 00 DD 11 07 99 4D C8 09 A6 4B AB 6F [08:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 A3 7B 47 00 5D 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 8F 10 00 00 F4 03 04 00 9D 1D 61 66 B6 04 01 00 00 EC 3E AC A1 51 ED 29 23 [08:21:47]CommunicateWithHost err = 0 [08:21:47]CheckOFDResponse [08:21:47]1017 (14) - 77093643461234 [08:21:47]1041 (16) - 0000000000959360 [08:21:47]1040 (4) - 4239 [08:21:47]1012 (4) - 06.06.2024 02:23 [08:21:47]1206 (1) - 0 [08:21:47]OFD Sender: Remove packet 4239 [08:21:47]ProducePacketName [08:21:47]name=ofd_packets/00004239 [08:21:47]NVStorageDeleteData [08:21:47]Write to MH i2c: 01 00 00 10 0E 1E [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 07 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 07 00 10 0E 00 00 00 00 00 29 0C 5A [08:21:47]RasterBufferAndPrint [08:21:47]line [08:21:47]line [08:21:47]line [08:21:47]line [08:21:47]line [08:21:47]written 0, free lines is 3119 [08:21:47]MH_Cut [08:21:47]Write to MH i2c: D1 01 00 17 0E 01 F7 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: D1 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: D1 01 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: D1 01 00 17 0E 00 F6 [08:21:47]Write to MH i2c: 01 00 00 18 0E 26 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:48]OFD Sender: No OFD packet to send [08:21:49]*** Cut start [08:21:49]*** Partial cut [08:21:49]*** CUTSNS_PIN = 1 [08:21:49]*** CUTSNS_PIN = 0 [08:21:49]*** Brake cut motor [08:21:49]Read from MH i2c: 01 [08:21:49]MH_I2C_Read... [08:21:49]*** Stop cut motor [08:21:49]*** Cut end [08:21:49]Read from MH i2c: 01 07 00 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: 01 07 00 18 0E 00 00 00 00 00 FF 0F 3B [08:21:49]process_action close_receipt done [08:21:49]requested_data is exist [08:21:49]produce_requested_data [08:21:49]requested_item fm.sn is exist - process it [08:21:49]wFMCommunicate request_size=4 [08:21:49]MH_SAM_APDU [08:21:49]CAPDU: 80 11 00 00 [08:21:49]Write to MH i2c: E2 08 00 19 0E 80 11 00 00 00 00 00 00 A1 [08:21:49]Write i2c OK [08:21:49]MH_I2C_Read... [08:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:49]Read from MH i2c: E2 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 17 00 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 17 00 19 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 F4 [08:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [08:21:49]wFMCommunicate OK [08:21:49]requested_item fd.num is exist - process it [08:21:49]SAM_PROTO_GetFieldsCounters [08:21:49]wFMCommunicate request_size=4 [08:21:49]MH_SAM_APDU [08:21:49]CAPDU: 80 13 00 00 [08:21:49]Write to MH i2c: E2 08 00 1A 0E 80 13 00 00 00 00 00 00 A4 [08:21:49]Write i2c OK [08:21:49]MH_I2C_Read... [08:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:49]Read from MH i2c: E2 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 62 00 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 62 00 1A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8F 10 00 00 0E 04 04 00 55 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 E7 [08:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 8F 10 00 00 0E 04 04 00 55 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 [08:21:49]wFMCommunicate OK [08:21:49]SAM_PROTO_GetFieldsCounters done [08:21:49]requested_item shift.num is exist - process it [08:21:49]requested_item shift.opened is exist - process it [08:21:49]req_shift_opened [08:21:49]FM_GetShiftState [08:21:49]SAM_PROTO_GetShiftState [08:21:49]wFMCommunicate request_size=4 [08:21:49]MH_SAM_APDU [08:21:49]CAPDU: 80 13 01 00 [08:21:49]Write to MH i2c: E2 08 00 1B 0E 80 13 01 00 00 00 00 00 A6 [08:21:49]Write i2c OK [08:21:49]MH_I2C_Read... [08:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:49]Read from MH i2c: E2 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 0E 00 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 0E 00 1B 0E 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 5F [08:21:49]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [08:21:49]wFMCommunicate OK [08:21:49]SAM_PROTO_GetShiftState done [08:21:49]FM_GetShiftState done [08:21:49]req_shift_opened done [08:21:49]requested_item shift.open_date is exist - process it [08:21:49]req_shift_open_date [08:21:49]req_shift_open_date done [08:21:49]produce_requested_data done [08:21:49]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4239,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [08:21:49]process_action_free close_receipt [08:21:49]json_value_free [08:21:49]json_value_free done [08:21:49]process_json_proto returns [08:21:49]Send response to host [08:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4239,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [08:21:49]free response buf [08:21:49]execute_script done [08:21:49]execute_script returns [08:21:49]free content buf [08:21:49]Sock 8.Close socket [08:21:49]Sock 8.Thread stoped [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:01]accept exits with 9 [08:23:01]New connection [08:23:01]New thread 3066629476 created [08:23:01]Thread 3066772836 joined [08:23:01]Waiting for new connection... [08:23:01] Sock 9.Parse request [08:23:01]Sock 9.Check first char [08:23:01]Sock 9.First char is OK [08:23:01]request: POST /json_proto HTTP/1.0 [08:23:01]Method: POST [08:23:01]URL: /json_proto [08:23:01]Method is POST - this is cgi request [08:23:01]url: /json_proto [08:23:01]query_string will be loaded in cgi processing [08:23:01]execute_cgi json_proto POST (null) [08:23:01]execute_cgi path=json_proto method=POST [08:23:01]POST find Content-Length [08:23:01]Host: 172.17.56.68:8080 [08:23:01]Content-Length: 810 [08:23:01]Content-Type: application/json [08:23:01] [08:23:01]POST finish read [08:23:01]Found Content-Length = 810 [08:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4492", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:01]execute_script... [08:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4492", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:01]POST & json_proto [08:23:01]process_json_proto [08:23:01]json parsed OK: [08:23:01]protocol is kg_v1.0 [08:23:01]action value=close_receipt [08:23:01]process_action close_receipt [08:23:01]cmd_close_receipt [08:23:01]MH_GetDate [08:23:01]Write to MH i2c: F0 00 00 1C 0E 19 [08:23:01]Write i2c OK [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: F0 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: F0 09 00 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: F0 09 00 1C 0E 00 E9 71 61 66 3A 8F 60 66 D2 [08:23:01]GetLastDocTimeStamp 1717662109 [08:23:01]current date 1717662185 [08:23:01]FM_GetShiftState [08:23:01]SAM_PROTO_GetShiftState [08:23:01]wFMCommunicate request_size=4 [08:23:01]MH_SAM_APDU [08:23:01]CAPDU: 80 13 01 00 [08:23:01]Write to MH i2c: E2 08 00 1D 0E 80 13 01 00 00 00 00 00 A8 [08:23:01]Write i2c OK [08:23:01]MH_I2C_Read... [08:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:01]Read from MH i2c: E2 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: E2 0E 00 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: E2 0E 00 1D 0E 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 61 [08:23:01]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [08:23:01]wFMCommunicate OK [08:23:01]SAM_PROTO_GetShiftState done [08:23:01]FM_GetShiftState done [08:23:01]opened in 1717632745 [08:23:01]opened+sec_in_day 1717719145 [08:23:01]quantity*price = 12500 [08:23:01]sum+1 = 12501 [08:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 15 06.06.2024 08:23 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: О! деньги ФМ: 0000000000959360 ФД: 4240 ФПД: 112517616798964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T082305&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4240&fm=112517616798964&tin=02508201610067®Number=0000000000145775&sum=12500 0 [08:23:02]StoreToDocumentArchive [08:23:02]shift 85 fd 4240 [08:23:02]save to /storage/0085/doc_00004240 [08:23:02]save last doc name /storage/0085/doc_00004240 to /storage/kkm_last_doc_name [08:23:02]save OK [08:23:02]Clear old archive folders... [08:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:23:02]tlvbuf is 019868D0 [08:23:02]SAM_PROTO_ClearQueue [08:23:02]wFMCommunicate request_size=4 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 09 00 00 [08:23:02]Write to MH i2c: E2 08 00 2A 0E 80 09 00 00 00 00 00 00 AA [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 03 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [08:23:02]RAPDU: 90 00 [08:23:02]wFMCommunicate OK [08:23:02]SAM_PROTO_ClearQueue done [08:23:02]KKMCreateOFDPacket [08:23:02]OFDProtocolAddRootSTLVToBuf [08:23:02]FM_MakeSignedData [08:23:02]FM_MakeSignedData [08:23:02]SAM_PROTO_SignData [08:23:02]wFMCommunicate request_size=4 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 0D 01 02 [08:23:02]Write to MH i2c: E2 08 00 2B 0E 80 0D 01 02 00 00 00 00 B2 [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 03 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [08:23:02]RAPDU: 90 00 [08:23:02]wFMCommunicate OK [08:23:02]wFMCommunicate request_size=255 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E9 71 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 [08:23:02]Write to MH i2c: E2 02 01 2C 0E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E9 71 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 00 00 39 [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 03 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [08:23:02]RAPDU: 90 00 [08:23:02]wFMCommunicate OK [08:23:02]wFMCommunicate request_size=41 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 90 10 00 00 35 04 06 00 66 55 8C 94 8C F4 [08:23:02]Write to MH i2c: E2 2C 00 2D 0E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 90 10 00 00 35 04 06 00 66 55 8C 94 8C F4 00 00 7F [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 03 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [08:23:02]RAPDU: 90 00 [08:23:02]wFMCommunicate OK [08:23:02]wFMCommunicate request_size=4 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 0D 03 02 [08:23:02]Write to MH i2c: E2 08 00 2E 0E 80 0D 03 02 00 00 00 00 B7 [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 0B 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 0B 00 2E 0E 00 41 15 4C A0 92 7A 01 AB 90 00 B2 [08:23:02]RAPDU: 41 15 4C A0 92 7A 01 AB 90 00 [08:23:02]wFMCommunicate OK [08:23:02]SAM_PROTO_SignData done [08:23:02]FM_MakeSignedData done [08:23:02]CreateOFDProtocolMessage [08:23:02]wFMCommunicate request_size=4 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 11 00 00 [08:23:02]Write to MH i2c: E2 08 00 2F 0E 80 11 00 00 00 00 00 00 B7 [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 17 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 17 00 2F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 0A [08:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [08:23:02]wFMCommunicate OK [08:23:02]CreateOFDProtocolMessage done [08:23:02]OFDSenderStorePacket 4240 [08:23:02]StoreOFDPacket docnum=4240 [08:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2E 01 00 00 D3 D5 26 01 D7 E7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E9 71 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 90 10 00 00 35 04 06 00 66 55 8C 94 8C F4 41 15 4C A0 92 7A 01 AB [08:23:02]CheckFolder [08:23:02]dirname=/storage/ofd_packets [08:23:02]CheckFolder done [08:23:02]ProducePacketName [08:23:02]name=ofd_packets/00004240 [08:23:02]NVStorageSaveData ofd_packets/00004240 [08:23:02]File name is /storage/ofd_packets/00004240 [08:23:02]Write 332 bytes [08:23:02]NVStorageSaveData done [08:23:02]OFDSenderStorePacket done [08:23:02]KKMCreateOFDPacket done [08:23:02]NVStorageSaveData kkm_last_timestamp [08:23:02]File name is /storage/kkm_last_timestamp [08:23:02]Write 4 bytes [08:23:02]NVStorageSaveData done [08:23:02]ExternCall_PrintAddStr [08:23:02]wPrintStart [08:23:02]Write to MH i2c: 01 00 00 30 0E 3E [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: 01 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: 01 07 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: 01 07 00 30 0E 00 00 00 00 00 FF 0F 53 [08:23:02]RasterBufferAndPrint [08:23:02]line Счет N : (3)4492 [08:23:02]line ИНН: 02508201610067 [08:23:02]line Контрольно-Кассовый Чек [08:23:02]line ПРОДАЖА [08:23:02]line Товар: 2000036220012 [08:23:02]line Кофе Капучино XL(GABB TRADE) [08:23:02]line 1.000 * 125.00 [08:23:02]line = 125.00 [08:23:02]line НДС 12% НСП 1% [08:23:02]line > о реализуемом товаре [08:23:02]line ИТОГО: 125.00 [08:23:02]line НСП 1% : 1.11 [08:23:02]line НДС 12% : 13.27 [08:23:02]line Наличными: 0.00 [08:23:02]line Безнал.: 125.00 [08:23:02]line Место: АЗС № 116 "Партнер Нефть" [08:23:02]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [08:23:02]line СНО: Общий режим [08:23:02]line Чек 15 06.06.2024 08:23 [08:23:02]line Смена: 85 ФФД: 1.0 [08:23:02]line ЗНМ: 0300000233 [08:23:02]line РНМ: 0000000000145775 [08:23:02]line Версия ККМ: v1.0 [08:23:02]line Платежная система: О! деньги [08:23:02]line ФМ: 0000000000959360 [08:23:02]line ФД: 4240 [08:23:02]line ФПД: 112517616798964 [08:23:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T082305&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4240&fm=112517616798964&tin=02508201610067®Number=0000000000145775&sum=12500 [08:23:03]line 0 [08:23:03]OFD Sender: Processing packet 4240 [packets to send 2, broken 1] [08:23:03]ProducePacketName [08:23:03]name=ofd_packets/00004240 [08:23:03]OFD Sender: To server: pG, [08:23:03]CommunicateWithHost lk.salyk.kg:30040 [08:23:03]ConnectInit lk.salyk.kg [08:23:03]written 0, free lines is 4095 [08:23:03]Connected sock=11 [08:23:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2E 01 00 00 D3 D5 26 01 D7 E7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E9 71 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 90 10 00 00 35 04 06 00 66 55 8C 94 8C F4 41 15 4C A0 92 7A 01 AB [08:23:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 80 7C 47 00 8E C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 90 10 00 00 F4 03 04 00 E9 1D 61 66 B6 04 01 00 00 4C F2 88 37 A5 58 0A 45 [08:23:03]CommunicateWithHost err = 0 [08:23:03]CheckOFDResponse [08:23:03]1017 (14) - 77093643461234 [08:23:03]1041 (16) - 0000000000959360 [08:23:03]1040 (4) - 4240 [08:23:03]1012 (4) - 06.06.2024 02:24 [08:23:03]1206 (1) - 0 [08:23:03]OFD Sender: Remove packet 4240 [08:23:03]ProducePacketName [08:23:03]name=ofd_packets/00004240 [08:23:03]NVStorageDeleteData [08:23:03]Write to MH i2c: 01 00 00 5B 0E 69 [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: 01 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: 01 07 00 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: 01 07 00 5B 0E 00 00 00 00 00 89 0C 05 [08:23:03]RasterBufferAndPrint [08:23:03]line [08:23:03]line [08:23:03]line [08:23:03]line [08:23:03]line [08:23:03]written 0, free lines is 3212 [08:23:03]MH_Cut [08:23:03]Write to MH i2c: D1 01 00 62 0E 01 42 [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: D1 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: D1 01 00 [08:23:03]MH_I2C_Read... [08:23:03]Read from MH i2c: D1 01 00 62 0E 00 41 [08:23:03]Write to MH i2c: 01 00 00 63 0E 71 [08:23:03]Write i2c OK [08:23:03]MH_I2C_Read... [08:23:03]OFD Sender: No OFD packet to send [08:23:04]*** Cut start [08:23:04]*** Partial cut [08:23:04]*** CUTSNS_PIN = 1 [08:23:04]*** CUTSNS_PIN = 0 [08:23:04]*** Brake cut motor [08:23:05]Read from MH i2c: 01 [08:23:05]MH_I2C_Read... [08:23:05]*** Stop cut motor [08:23:05]*** Cut end [08:23:05]Read from MH i2c: 01 07 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: 01 07 00 63 0E 00 00 00 00 00 FF 0F 86 [08:23:05]process_action close_receipt done [08:23:05]requested_data is exist [08:23:05]produce_requested_data [08:23:05]requested_item fm.sn is exist - process it [08:23:05]wFMCommunicate request_size=4 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 11 00 00 [08:23:05]Write to MH i2c: E2 08 00 64 0E 80 11 00 00 00 00 00 00 EC [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 17 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 17 00 64 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 3F [08:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [08:23:05]wFMCommunicate OK [08:23:05]requested_item fd.num is exist - process it [08:23:05]SAM_PROTO_GetFieldsCounters [08:23:05]wFMCommunicate request_size=4 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 13 00 00 [08:23:05]Write to MH i2c: E2 08 00 65 0E 80 13 00 00 00 00 00 00 EF [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 62 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 62 00 65 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 90 10 00 00 0E 04 04 00 55 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 36 [08:23:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 90 10 00 00 0E 04 04 00 55 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 [08:23:05]wFMCommunicate OK [08:23:05]SAM_PROTO_GetFieldsCounters done [08:23:05]requested_item shift.num is exist - process it [08:23:05]requested_item shift.opened is exist - process it [08:23:05]req_shift_opened [08:23:05]FM_GetShiftState [08:23:05]SAM_PROTO_GetShiftState [08:23:05]wFMCommunicate request_size=4 [08:23:05]MH_SAM_APDU [08:23:05]CAPDU: 80 13 01 00 [08:23:05]Write to MH i2c: E2 08 00 66 0E 80 13 01 00 00 00 00 00 F1 [08:23:05]Write i2c OK [08:23:05]MH_I2C_Read... [08:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:05]Read from MH i2c: E2 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 0E 00 [08:23:05]MH_I2C_Read... [08:23:05]Read from MH i2c: E2 0E 00 66 0E 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 AA [08:23:05]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [08:23:05]wFMCommunicate OK [08:23:05]SAM_PROTO_GetShiftState done [08:23:05]FM_GetShiftState done [08:23:05]req_shift_opened done [08:23:05]requested_item shift.open_date is exist - process it [08:23:05]req_shift_open_date [08:23:05]req_shift_open_date done [08:23:05]produce_requested_data done [08:23:05]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4240,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [08:23:05]process_action_free close_receipt [08:23:05]json_value_free [08:23:05]json_value_free done [08:23:05]process_json_proto returns [08:23:05]Send response to host [08:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4240,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [08:23:05]free response buf [08:23:05]execute_script done [08:23:05]execute_script returns [08:23:05]free content buf [08:23:05]Sock 9.Close socket [08:23:05]Sock 9.Thread stoped [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:34]accept exits with 8 [08:43:34]New connection [08:43:34]New thread 3066772836 created [08:43:34]Thread 3066629476 joined [08:43:34]Waiting for new connection... [08:43:34] Sock 8.Parse request [08:43:34]Sock 8.Check first char [08:43:34]Sock 8.First char is OK [08:43:34]request: POST /json_proto HTTP/1.0 [08:43:34]Method: POST [08:43:34]URL: /json_proto [08:43:34]Method is POST - this is cgi request [08:43:34]url: /json_proto [08:43:34]query_string will be loaded in cgi processing [08:43:34]execute_cgi json_proto POST (null) [08:43:34]execute_cgi path=json_proto method=POST [08:43:34]POST find Content-Length [08:43:34]Host: 172.17.56.68:8080 [08:43:34]Content-Length: 647 [08:43:34]Content-Type: application/json [08:43:34] [08:43:34]POST finish read [08:43:34]Found Content-Length = 647 [08:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4493", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:34]execute_script... [08:43:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4493", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:34]POST & json_proto [08:43:34]process_json_proto [08:43:34]json parsed OK: [08:43:34]protocol is kg_v1.0 [08:43:34]action value=close_receipt [08:43:34]process_action close_receipt [08:43:34]cmd_close_receipt [08:43:34]MH_GetDate [08:43:34]Write to MH i2c: F0 00 00 67 0E 64 [08:43:34]Write i2c OK [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: F0 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: F0 09 00 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: F0 09 00 67 0E 00 BB 76 61 66 3A 8F 60 66 F4 [08:43:34]GetLastDocTimeStamp 1717662185 [08:43:34]current date 1717663419 [08:43:34]FM_GetShiftState [08:43:34]SAM_PROTO_GetShiftState [08:43:34]wFMCommunicate request_size=4 [08:43:34]MH_SAM_APDU [08:43:34]CAPDU: 80 13 01 00 [08:43:34]Write to MH i2c: E2 08 00 68 0E 80 13 01 00 00 00 00 00 F3 [08:43:34]Write i2c OK [08:43:34]MH_I2C_Read... [08:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:34]Read from MH i2c: E2 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: E2 0E 00 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: E2 0E 00 68 0E 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 AC [08:43:34]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [08:43:34]wFMCommunicate OK [08:43:34]SAM_PROTO_GetShiftState done [08:43:34]FM_GetShiftState done [08:43:34]opened in 1717632745 [08:43:34]opened+sec_in_day 1717719145 [08:43:34]quantity*price = 9500 [08:43:34]sum+1 = 9501 [08:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 16 06.06.2024 08:43 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4241 ФПД: 191749181346781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T084339&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4241&fm=191749181346781&tin=02508201610067®Number=0000000000145775&sum=9500 0 [08:43:35]StoreToDocumentArchive [08:43:35]shift 85 fd 4241 [08:43:35]save to /storage/0085/doc_00004241 [08:43:35]save last doc name /storage/0085/doc_00004241 to /storage/kkm_last_doc_name [08:43:35]save OK [08:43:35]Clear old archive folders... [08:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=284 [08:43:35]tlvbuf is 019AD6A0 [08:43:35]SAM_PROTO_ClearQueue [08:43:35]wFMCommunicate request_size=4 [08:43:35]MH_SAM_APDU [08:43:35]CAPDU: 80 09 00 00 [08:43:35]Write to MH i2c: E2 08 00 75 0E 80 09 00 00 00 00 00 00 F5 [08:43:35]Write i2c OK [08:43:35]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 75 0E 00 90 00 F7 [08:43:36]RAPDU: 90 00 [08:43:36]wFMCommunicate OK [08:43:36]SAM_PROTO_ClearQueue done [08:43:36]KKMCreateOFDPacket [08:43:36]OFDProtocolAddRootSTLVToBuf [08:43:36]FM_MakeSignedData [08:43:36]FM_MakeSignedData [08:43:36]SAM_PROTO_SignData [08:43:36]wFMCommunicate request_size=4 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 0D 01 02 [08:43:36]Write to MH i2c: E2 08 00 76 0E 80 0D 01 02 00 00 00 00 FD [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 76 0E 00 90 00 F8 [08:43:36]RAPDU: 90 00 [08:43:36]wFMCommunicate OK [08:43:36]wFMCommunicate request_size=255 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 BB 76 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 [08:43:36]Write to MH i2c: E2 02 01 77 0E 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 BB 76 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 00 00 99 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 77 0E 00 90 00 F9 [08:43:36]RAPDU: 90 00 [08:43:36]wFMCommunicate OK [08:43:36]wFMCommunicate request_size=43 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 91 10 00 00 35 04 06 00 AE 65 15 D7 13 DD [08:43:36]Write to MH i2c: E2 2E 00 78 0E 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 91 10 00 00 35 04 06 00 AE 65 15 D7 13 DD 00 00 78 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 78 0E 00 90 00 FA [08:43:36]RAPDU: 90 00 [08:43:36]wFMCommunicate OK [08:43:36]wFMCommunicate request_size=4 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 0D 03 02 [08:43:36]Write to MH i2c: E2 08 00 79 0E 80 0D 03 02 00 00 00 00 02 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 0B 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 0B 00 79 0E 00 5D 37 7D 5A E5 01 35 B1 90 00 3A [08:43:36]RAPDU: 5D 37 7D 5A E5 01 35 B1 90 00 [08:43:36]wFMCommunicate OK [08:43:36]SAM_PROTO_SignData done [08:43:36]FM_MakeSignedData done [08:43:36]CreateOFDProtocolMessage [08:43:36]wFMCommunicate request_size=4 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 11 00 00 [08:43:36]Write to MH i2c: E2 08 00 7A 0E 80 11 00 00 00 00 00 00 02 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 17 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 17 00 7A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 55 [08:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [08:43:36]wFMCommunicate OK [08:43:36]CreateOFDProtocolMessage done [08:43:36]OFDSenderStorePacket 4241 [08:43:36]StoreOFDPacket docnum=4241 [08:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 30 01 00 00 7C 0B 28 01 A7 4F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 BB 76 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 91 10 00 00 35 04 06 00 AE 65 15 D7 13 DD 5D 37 7D 5A E5 01 35 B1 [08:43:36]CheckFolder [08:43:36]dirname=/storage/ofd_packets [08:43:36]CheckFolder done [08:43:36]ProducePacketName [08:43:36]name=ofd_packets/00004241 [08:43:36]NVStorageSaveData ofd_packets/00004241 [08:43:36]File name is /storage/ofd_packets/00004241 [08:43:36]Write 334 bytes [08:43:36]NVStorageSaveData done [08:43:36]OFDSenderStorePacket done [08:43:36]KKMCreateOFDPacket done [08:43:36]NVStorageSaveData kkm_last_timestamp [08:43:36]File name is /storage/kkm_last_timestamp [08:43:36]Write 4 bytes [08:43:36]NVStorageSaveData done [08:43:36]ExternCall_PrintAddStr [08:43:36]wPrintStart [08:43:36]Write to MH i2c: 01 00 00 7B 0E 89 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: 01 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: 01 07 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: 01 07 00 7B 0E 00 00 00 00 00 FF 0F 9E [08:43:36]RasterBufferAndPrint [08:43:36]line Счет N : (3)4493 [08:43:36]line ИНН: 02508201610067 [08:43:36]line Контрольно-Кассовый Чек [08:43:36]line ПРОДАЖА [08:43:36]line Товар: 2000036190018 [08:43:36]line Кофе Американо XL(GABB TRADE) [08:43:36]line 1.000 * 95.00 [08:43:36]line = 95.00 [08:43:36]line НДС 12% НСП 1% [08:43:36]line > о реализуемом товаре [08:43:36]line ИТОГО: 95.00 [08:43:36]line НСП 1% : 0.84 [08:43:36]line НДС 12% : 10.09 [08:43:36]line Наличными: 95.00 [08:43:36]line Безнал.: 0.00 [08:43:36]line Место: АЗС № 116 "Партнер Нефть" [08:43:36]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [08:43:36]line СНО: Общий режим [08:43:36]line Чек 16 06.06.2024 08:43 [08:43:36]line Смена: 85 ФФД: 1.0 [08:43:36]line ЗНМ: 0300000233 [08:43:36]line РНМ: 0000000000145775 [08:43:36]line Версия ККМ: v1.0 [08:43:36]line ФМ: 0000000000959360 [08:43:36]line ФД: 4241 [08:43:36]line ФПД: 191749181346781 [08:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T084339&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4241&fm=191749181346781&tin=02508201610067®Number=0000000000145775&sum=9500 [08:43:36]line 0 [08:43:36]OFD Sender: Processing packet 4241 [packets to send 2, broken 1] [08:43:36]ProducePacketName [08:43:36]name=ofd_packets/00004241 [08:43:36]OFD Sender: To server: pG, [08:43:36]CommunicateWithHost lk.salyk.kg:30040 [08:43:36]ConnectInit lk.salyk.kg [08:43:36]written 0, free lines is 4095 [08:43:36]Connected sock=10 [08:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 30 01 00 00 7C 0B 28 01 A7 4F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 BB 76 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 91 10 00 00 35 04 06 00 AE 65 15 D7 13 DD 5D 37 7D 5A E5 01 35 B1 [08:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 3B 45 47 00 0B 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 91 10 00 00 F4 03 04 00 BB 22 61 66 B6 04 01 00 00 EC FF A1 4F FD A5 9F 9B [08:43:37]CommunicateWithHost err = 0 [08:43:37]CheckOFDResponse [08:43:37]1017 (14) - 77093643461234 [08:43:37]1041 (16) - 0000000000959360 [08:43:37]1040 (4) - 4241 [08:43:37]1012 (4) - 06.06.2024 02:45 [08:43:37]1206 (1) - 0 [08:43:37]OFD Sender: Remove packet 4241 [08:43:37]ProducePacketName [08:43:37]name=ofd_packets/00004241 [08:43:37]NVStorageDeleteData [08:43:37]Write to MH i2c: 01 00 00 A4 0E B2 [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: 01 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: 01 07 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: 01 07 00 A4 0E 00 00 00 00 00 B6 0C 7B [08:43:37]RasterBufferAndPrint [08:43:37]line [08:43:37]line [08:43:37]line [08:43:37]line [08:43:37]line [08:43:37]written 0, free lines is 3257 [08:43:37]MH_Cut [08:43:37]Write to MH i2c: D1 01 00 AB 0E 01 8B [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: D1 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: D1 01 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: D1 01 00 AB 0E 00 8A [08:43:37]Write to MH i2c: 01 00 00 AC 0E BA [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]OFD Sender: No OFD packet to send [08:43:38]*** Cut start [08:43:38]*** Partial cut [08:43:38]*** CUTSNS_PIN = 1 [08:43:38]*** CUTSNS_PIN = 0 [08:43:38]*** Brake cut motor [08:43:38]Read from MH i2c: 01 [08:43:38]MH_I2C_Read... [08:43:38]*** Stop cut motor [08:43:38]*** Cut end [08:43:38]Read from MH i2c: 01 07 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: 01 07 00 AC 0E 00 00 00 00 00 FF 0F CF [08:43:38]process_action close_receipt done [08:43:38]requested_data is exist [08:43:38]produce_requested_data [08:43:38]requested_item fm.sn is exist - process it [08:43:38]wFMCommunicate request_size=4 [08:43:38]MH_SAM_APDU [08:43:38]CAPDU: 80 11 00 00 [08:43:38]Write to MH i2c: E2 08 00 AD 0E 80 11 00 00 00 00 00 00 35 [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:38]Read from MH i2c: E2 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 17 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 17 00 AD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 88 [08:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [08:43:38]wFMCommunicate OK [08:43:38]requested_item fd.num is exist - process it [08:43:38]SAM_PROTO_GetFieldsCounters [08:43:38]wFMCommunicate request_size=4 [08:43:38]MH_SAM_APDU [08:43:38]CAPDU: 80 13 00 00 [08:43:38]Write to MH i2c: E2 08 00 AE 0E 80 13 00 00 00 00 00 00 38 [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:39]Read from MH i2c: E2 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 62 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 62 00 AE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 91 10 00 00 0E 04 04 00 55 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 83 [08:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 91 10 00 00 0E 04 04 00 55 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 [08:43:39]wFMCommunicate OK [08:43:39]SAM_PROTO_GetFieldsCounters done [08:43:39]requested_item shift.num is exist - process it [08:43:39]requested_item shift.opened is exist - process it [08:43:39]req_shift_opened [08:43:39]FM_GetShiftState [08:43:39]SAM_PROTO_GetShiftState [08:43:39]wFMCommunicate request_size=4 [08:43:39]MH_SAM_APDU [08:43:39]CAPDU: 80 13 01 00 [08:43:39]Write to MH i2c: E2 08 00 AF 0E 80 13 01 00 00 00 00 00 3A [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:39]Read from MH i2c: E2 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 0E 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 0E 00 AF 0E 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 F3 [08:43:39]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [08:43:39]wFMCommunicate OK [08:43:39]SAM_PROTO_GetShiftState done [08:43:39]FM_GetShiftState done [08:43:39]req_shift_opened done [08:43:39]requested_item shift.open_date is exist - process it [08:43:39]req_shift_open_date [08:43:39]req_shift_open_date done [08:43:39]produce_requested_data done [08:43:39]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4241,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [08:43:39]process_action_free close_receipt [08:43:39]json_value_free [08:43:39]json_value_free done [08:43:39]process_json_proto returns [08:43:39]Send response to host [08:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4241,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [08:43:39]free response buf [08:43:39]execute_script done [08:43:39]execute_script returns [08:43:39]free content buf [08:43:39]Sock 8.Close socket [08:43:39]Sock 8.Thread stoped [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:54]accept exits with 9 [09:14:54]New connection [09:14:54]New thread 3066629476 created [09:14:54]Thread 3066772836 joined [09:14:54]Waiting for new connection... [09:14:54] Sock 9.Parse request [09:14:54]Sock 9.Check first char [09:14:54]Sock 9.First char is OK [09:14:54]request: POST /json_proto HTTP/1.0 [09:14:54]Method: POST [09:14:54]URL: /json_proto [09:14:54]Method is POST - this is cgi request [09:14:54]url: /json_proto [09:14:54]query_string will be loaded in cgi processing [09:14:54]execute_cgi json_proto POST (null) [09:14:54]execute_cgi path=json_proto method=POST [09:14:54]POST find Content-Length [09:14:54]Host: 172.17.56.68:8080 [09:14:54]Content-Length: 686 [09:14:54]Content-Type: application/json [09:14:54] [09:14:54]POST finish read [09:14:54]Found Content-Length = 686 [09:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4494", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:54]execute_script... [09:14: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 : (3)4494", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:54]POST & json_proto [09:14:54]process_json_proto [09:14:54]json parsed OK: [09:14:54]protocol is kg_v1.0 [09:14:54]action value=close_receipt [09:14:54]process_action close_receipt [09:14:54]cmd_close_receipt [09:14:54]MH_GetDate [09:14:54]Write to MH i2c: F0 00 00 B0 0E AD [09:14:54]Write i2c OK [09:14:54]MH_I2C_Read... [09:14:54]Read from MH i2c: F0 [09:14:54]MH_I2C_Read... [09:14:54]Read from MH i2c: F0 09 00 [09:14:54]MH_I2C_Read... [09:14:54]Read from MH i2c: F0 09 00 B0 0E 00 13 7E 61 66 3A 8F 60 66 9D [09:14:54]GetLastDocTimeStamp 1717663419 [09:14:54]current date 1717665299 [09:14:54]FM_GetShiftState [09:14:54]SAM_PROTO_GetShiftState [09:14:54]wFMCommunicate request_size=4 [09:14:54]MH_SAM_APDU [09:14:54]CAPDU: 80 13 01 00 [09:14:54]Write to MH i2c: E2 08 00 B1 0E 80 13 01 00 00 00 00 00 3C [09:14:54]Write i2c OK [09:14:54]MH_I2C_Read... [09:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:54]Read from MH i2c: E2 [09:14:54]MH_I2C_Read... [09:14:54]Read from MH i2c: E2 0E 00 [09:14:54]MH_I2C_Read... [09:14:54]Read from MH i2c: E2 0E 00 B1 0E 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 F5 [09:14:54]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [09:14:54]wFMCommunicate OK [09:14:54]SAM_PROTO_GetShiftState done [09:14:54]FM_GetShiftState done [09:14:54]opened in 1717632745 [09:14:54]opened+sec_in_day 1717719145 [09:14:54]quantity*price = 9500 [09:14:54]sum+1 = 9501 [09:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 17 06.06.2024 09:14 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4242 ФПД: 59961892378811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T091459&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4242&fm=59961892378811&tin=02508201610067®Number=0000000000145775&sum=9500 0 [09:14:55]StoreToDocumentArchive [09:14:55]shift 85 fd 4242 [09:14:55]save to /storage/0085/doc_00004242 [09:14:55]save last doc name /storage/0085/doc_00004242 to /storage/kkm_last_doc_name [09:14:55]save OK [09:14:55]Clear old archive folders... [09:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=299 [09:14:55]tlvbuf is 019ACD80 [09:14:55]SAM_PROTO_ClearQueue [09:14:55]wFMCommunicate request_size=4 [09:14:55]MH_SAM_APDU [09:14:55]CAPDU: 80 09 00 00 [09:14:55]Write to MH i2c: E2 08 00 BE 0E 80 09 00 00 00 00 00 00 3E [09:14:55]Write i2c OK [09:14:55]MH_I2C_Read... [09:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:55]Read from MH i2c: E2 [09:14:55]MH_I2C_Read... [09:14:55]Read from MH i2c: E2 03 00 [09:14:55]MH_I2C_Read... [09:14:55]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [09:14:55]RAPDU: 90 00 [09:14:55]wFMCommunicate OK [09:14:55]SAM_PROTO_ClearQueue done [09:14:55]KKMCreateOFDPacket [09:14:55]OFDProtocolAddRootSTLVToBuf [09:14:55]FM_MakeSignedData [09:14:55]FM_MakeSignedData [09:14:55]SAM_PROTO_SignData [09:14:55]wFMCommunicate request_size=4 [09:14:55]MH_SAM_APDU [09:14:55]CAPDU: 80 0D 01 02 [09:14:55]Write to MH i2c: E2 08 00 BF 0E 80 0D 01 02 00 00 00 00 46 [09:14:55]Write i2c OK [09:14:55]MH_I2C_Read... [09:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:55]Read from MH i2c: E2 [09:14:55]MH_I2C_Read... [09:14:55]Read from MH i2c: E2 03 00 [09:14:55]MH_I2C_Read... [09:14:55]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [09:14:55]RAPDU: 90 00 [09:14:55]wFMCommunicate OK [09:14:55]wFMCommunicate request_size=255 [09:14:55]MH_SAM_APDU [09:14:55]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 13 7E 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [09:14:55]Write to MH i2c: E2 02 01 C0 0E 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 13 7E 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 AB [09:14:55]Write i2c OK [09:14:55]MH_I2C_Read... [09:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:56]Read from MH i2c: E2 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 03 00 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [09:14:56]RAPDU: 90 00 [09:14:56]wFMCommunicate OK [09:14:56]wFMCommunicate request_size=58 [09:14:56]MH_SAM_APDU [09:14:56]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 92 10 00 00 35 04 06 00 36 88 F7 4B 98 BB [09:14:56]Write to MH i2c: E2 3D 00 C1 0E 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 92 10 00 00 35 04 06 00 36 88 F7 4B 98 BB 00 00 31 [09:14:56]Write i2c OK [09:14:56]MH_I2C_Read... [09:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:56]Read from MH i2c: E2 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 03 00 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [09:14:56]RAPDU: 90 00 [09:14:56]wFMCommunicate OK [09:14:56]wFMCommunicate request_size=4 [09:14:56]MH_SAM_APDU [09:14:56]CAPDU: 80 0D 03 02 [09:14:56]Write to MH i2c: E2 08 00 C2 0E 80 0D 03 02 00 00 00 00 4B [09:14:56]Write i2c OK [09:14:56]MH_I2C_Read... [09:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:56]Read from MH i2c: E2 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 0B 00 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 0B 00 C2 0E 00 C0 87 11 F6 8D F7 DE 1F 90 00 1B [09:14:56]RAPDU: C0 87 11 F6 8D F7 DE 1F 90 00 [09:14:56]wFMCommunicate OK [09:14:56]SAM_PROTO_SignData done [09:14:56]FM_MakeSignedData done [09:14:56]CreateOFDProtocolMessage [09:14:56]wFMCommunicate request_size=4 [09:14:56]MH_SAM_APDU [09:14:56]CAPDU: 80 11 00 00 [09:14:56]Write to MH i2c: E2 08 00 C3 0E 80 11 00 00 00 00 00 00 4B [09:14:56]Write i2c OK [09:14:56]MH_I2C_Read... [09:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:56]Read from MH i2c: E2 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 17 00 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 17 00 C3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 9E [09:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [09:14:56]wFMCommunicate OK [09:14:56]CreateOFDProtocolMessage done [09:14:56]OFDSenderStorePacket 4242 [09:14:56]StoreOFDPacket docnum=4242 [09:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3F 01 00 00 48 06 37 01 E7 3C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 13 7E 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 92 10 00 00 35 04 06 00 36 88 F7 4B 98 BB C0 87 11 F6 8D F7 DE 1F [09:14:56]CheckFolder [09:14:56]dirname=/storage/ofd_packets [09:14:56]CheckFolder done [09:14:56]ProducePacketName [09:14:56]name=ofd_packets/00004242 [09:14:56]NVStorageSaveData ofd_packets/00004242 [09:14:56]File name is /storage/ofd_packets/00004242 [09:14:56]Write 349 bytes [09:14:56]NVStorageSaveData done [09:14:56]OFDSenderStorePacket done [09:14:56]KKMCreateOFDPacket done [09:14:56]NVStorageSaveData kkm_last_timestamp [09:14:56]File name is /storage/kkm_last_timestamp [09:14:56]Write 4 bytes [09:14:56]NVStorageSaveData done [09:14:56]ExternCall_PrintAddStr [09:14:56]wPrintStart [09:14:56]Write to MH i2c: 01 00 00 C4 0E D2 [09:14:56]Write i2c OK [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: 01 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: 01 07 00 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: 01 07 00 C4 0E 00 00 00 00 00 FF 0F E7 [09:14:56]RasterBufferAndPrint [09:14:56]line Счет N : (3)4494 [09:14:56]line ИНН: 02508201610067 [09:14:56]line Контрольно-Кассовый Чек [09:14:56]line ПРОДАЖА [09:14:56]line Товар: 4700003010070 [09:14:56]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [09:14:56]line 1.000 * 95.00 [09:14:56]line = 95.00 [09:14:56]line НДС 12% НСП 1% [09:14:56]line > о реализуемом товаре [09:14:56]line ИТОГО: 95.00 [09:14:56]line НСП 1% : 0.84 [09:14:56]line НДС 12% : 10.09 [09:14:56]line Наличными: 95.00 [09:14:56]line Безнал.: 0.00 [09:14:56]line Место: АЗС № 116 "Партнер Нефть" [09:14:56]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [09:14:56]line СНО: Общий режим [09:14:56]line Чек 17 06.06.2024 09:14 [09:14:56]line Смена: 85 ФФД: 1.0 [09:14:56]line ЗНМ: 0300000233 [09:14:56]line РНМ: 0000000000145775 [09:14:56]line Версия ККМ: v1.0 [09:14:56]line ФМ: 0000000000959360 [09:14:56]line ФД: 4242 [09:14:56]line ФПД: 59961892378811 [09:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T091459&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4242&fm=59961892378811&tin=02508201610067®Number=0000000000145775&sum=9500 [09:14:56]line 0 [09:14:56]OFD Sender: Processing packet 4242 [packets to send 2, broken 1] [09:14:56]ProducePacketName [09:14:56]name=ofd_packets/00004242 [09:14:56]OFD Sender: To server: pG, [09:14:56]CommunicateWithHost lk.salyk.kg:30040 [09:14:56]ConnectInit lk.salyk.kg [09:14:56]written 0, free lines is 4095 [09:14:56]Connected sock=10 [09:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3F 01 00 00 48 06 37 01 E7 3C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 13 7E 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 92 10 00 00 35 04 06 00 36 88 F7 4B 98 BB C0 87 11 F6 8D F7 DE 1F [09:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 E0 6D 47 00 21 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 92 10 00 00 F4 03 04 00 12 2A 61 66 B6 04 01 00 00 46 5C 10 65 49 30 93 B8 [09:14:57]CommunicateWithHost err = 0 [09:14:57]CheckOFDResponse [09:14:57]1017 (14) - 77093643461234 [09:14:57]1041 (16) - 0000000000959360 [09:14:57]1040 (4) - 4242 [09:14:57]1012 (4) - 06.06.2024 03:16 [09:14:57]1206 (1) - 0 [09:14:57]OFD Sender: Remove packet 4242 [09:14:57]ProducePacketName [09:14:57]name=ofd_packets/00004242 [09:14:57]NVStorageDeleteData [09:14:57]Write to MH i2c: 01 00 00 ED 0E FB [09:14:57]Write i2c OK [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: 01 [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: 01 07 00 [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: 01 07 00 ED 0E 00 00 00 00 00 AF 0C BD [09:14:57]RasterBufferAndPrint [09:14:57]line [09:14:57]line [09:14:57]line [09:14:57]line [09:14:57]line [09:14:57]written 0, free lines is 3252 [09:14:57]MH_Cut [09:14:57]Write to MH i2c: D1 01 00 F4 0E 01 D4 [09:14:57]Write i2c OK [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: D1 [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: D1 01 00 [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: D1 01 00 F4 0E 00 D3 [09:14:57]Write to MH i2c: 01 00 00 F5 0E 03 [09:14:57]Write i2c OK [09:14:57]MH_I2C_Read... [09:14:57]OFD Sender: No OFD packet to send [09:14:58]*** Cut start [09:14:58]*** Partial cut [09:14:58]*** CUTSNS_PIN = 1 [09:14:58]*** CUTSNS_PIN = 0 [09:14:58]*** Brake cut motor [09:14:58]Read from MH i2c: 01 [09:14:58]MH_I2C_Read... [09:14:58]*** Stop cut motor [09:14:58]*** Cut end [09:14:58]Read from MH i2c: 01 07 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: 01 07 00 F5 0E 00 00 00 00 00 FF 0F 18 [09:14:58]process_action close_receipt done [09:14:58]requested_data is exist [09:14:58]produce_requested_data [09:14:58]requested_item fm.sn is exist - process it [09:14:58]wFMCommunicate request_size=4 [09:14:58]MH_SAM_APDU [09:14:58]CAPDU: 80 11 00 00 [09:14:58]Write to MH i2c: E2 08 00 F6 0E 80 11 00 00 00 00 00 00 7E [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:58]Read from MH i2c: E2 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 17 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 17 00 F6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 D1 [09:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [09:14:58]wFMCommunicate OK [09:14:58]requested_item fd.num is exist - process it [09:14:58]SAM_PROTO_GetFieldsCounters [09:14:58]wFMCommunicate request_size=4 [09:14:58]MH_SAM_APDU [09:14:58]CAPDU: 80 13 00 00 [09:14:58]Write to MH i2c: E2 08 00 F7 0E 80 13 00 00 00 00 00 00 81 [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:58]Read from MH i2c: E2 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 62 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 62 00 F7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 92 10 00 00 0E 04 04 00 55 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 D0 [09:14:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 92 10 00 00 0E 04 04 00 55 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:14:58]wFMCommunicate OK [09:14:58]SAM_PROTO_GetFieldsCounters done [09:14:58]requested_item shift.num is exist - process it [09:14:58]requested_item shift.opened is exist - process it [09:14:58]req_shift_opened [09:14:58]FM_GetShiftState [09:14:58]SAM_PROTO_GetShiftState [09:14:58]wFMCommunicate request_size=4 [09:14:58]MH_SAM_APDU [09:14:58]CAPDU: 80 13 01 00 [09:14:58]Write to MH i2c: E2 08 00 F8 0E 80 13 01 00 00 00 00 00 83 [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:59]Read from MH i2c: E2 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 0E 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 0E 00 F8 0E 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 3C [09:14:59]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [09:14:59]wFMCommunicate OK [09:14:59]SAM_PROTO_GetShiftState done [09:14:59]FM_GetShiftState done [09:14:59]req_shift_opened done [09:14:59]requested_item shift.open_date is exist - process it [09:14:59]req_shift_open_date [09:14:59]req_shift_open_date done [09:14:59]produce_requested_data done [09:14:59]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4242,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [09:14:59]process_action_free close_receipt [09:14:59]json_value_free [09:14:59]json_value_free done [09:14:59]process_json_proto returns [09:14:59]Send response to host [09:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4242,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [09:14:59]free response buf [09:14:59]execute_script done [09:14:59]execute_script returns [09:14:59]free content buf [09:14:59]Sock 9.Close socket [09:14:59]Sock 9.Thread stoped [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:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [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:06]accept exits with 8 [09:34:06]New connection [09:34:06]New thread 3066772836 created [09:34:06]Thread 3066629476 joined [09:34:06]Waiting for new connection... [09:34:06] Sock 8.Parse request [09:34:06]Sock 8.Check first char [09:34:06]Sock 8.First char is OK [09:34:06]request: POST /json_proto HTTP/1.0 [09:34:06]Method: POST [09:34:06]URL: /json_proto [09:34:06]Method is POST - this is cgi request [09:34:06]url: /json_proto [09:34:06]query_string will be loaded in cgi processing [09:34:06]execute_cgi json_proto POST (null) [09:34:06]execute_cgi path=json_proto method=POST [09:34:06]POST find Content-Length [09:34:06]Host: 172.17.56.68:8080 [09:34:06]Content-Length: 921 [09:34:06]Content-Type: application/json [09:34:06] [09:34:06]POST finish read [09:34:06]Found Content-Length = 921 [09:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4495", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010469", "name": "\u0412\u043E\u0434\u0430 Tien Shan \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 173.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:06]execute_script... [09:34:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4495", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010469", "name": "\u0412\u043E\u0434\u0430 Tien Shan \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 173.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:06]POST & json_proto [09:34:06]process_json_proto [09:34:06]json parsed OK: [09:34:06]protocol is kg_v1.0 [09:34:06]action value=close_receipt [09:34:06]process_action close_receipt [09:34:06]cmd_close_receipt [09:34:06]MH_GetDate [09:34:06]Write to MH i2c: F0 00 00 F9 0E F6 [09:34:06]Write i2c OK [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: F0 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: F0 09 00 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: F0 09 00 F9 0E 00 93 82 61 66 3A 8F 60 66 6A [09:34:06]GetLastDocTimeStamp 1717665299 [09:34:06]current date 1717666451 [09:34:06]FM_GetShiftState [09:34:06]SAM_PROTO_GetShiftState [09:34:06]wFMCommunicate request_size=4 [09:34:06]MH_SAM_APDU [09:34:06]CAPDU: 80 13 01 00 [09:34:06]Write to MH i2c: E2 08 00 FA 0E 80 13 01 00 00 00 00 00 85 [09:34:06]Write i2c OK [09:34:06]MH_I2C_Read... [09:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:06]Read from MH i2c: E2 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: E2 0E 00 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: E2 0E 00 FA 0E 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 3E [09:34:06]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [09:34:06]wFMCommunicate OK [09:34:06]SAM_PROTO_GetShiftState done [09:34:06]FM_GetShiftState done [09:34:06]opened in 1717632745 [09:34:06]opened+sec_in_day 1717719145 [09:34:06]quantity*price = 13800 [09:34:06]sum+1 = 13801 [09:34:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010469 Вода Tien Shan н.газ лимон ПЭТ 0,5л 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 173.00 НСП 1% : 1.53 НДС 12% : 18.37 Наличными: 173.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 18 06.06.2024 09:34 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4243 ФПД: 242117934105859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T093411&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4243&fm=242117934105859&tin=02508201610067®Number=0000000000145775&sum=17300 0 [09:34:07]StoreToDocumentArchive [09:34:07]shift 85 fd 4243 [09:34:07]save to /storage/0085/doc_00004243 [09:34:07]save last doc name /storage/0085/doc_00004243 to /storage/kkm_last_doc_name [09:34:07]save OK [09:34:07]Clear old archive folders... [09:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=407 [09:34:07]tlvbuf is 019C1210 [09:34:07]SAM_PROTO_ClearQueue [09:34:07]wFMCommunicate request_size=4 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 09 00 00 [09:34:07]Write to MH i2c: E2 08 00 07 0F 80 09 00 00 00 00 00 00 88 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [09:34:08]RAPDU: 90 00 [09:34:08]wFMCommunicate OK [09:34:08]SAM_PROTO_ClearQueue done [09:34:08]KKMCreateOFDPacket [09:34:08]OFDProtocolAddRootSTLVToBuf [09:34:08]FM_MakeSignedData [09:34:08]FM_MakeSignedData [09:34:08]SAM_PROTO_SignData [09:34:08]wFMCommunicate request_size=4 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 0D 01 02 [09:34:08]Write to MH i2c: E2 08 00 08 0F 80 0D 01 02 00 00 00 00 90 [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [09:34:08]RAPDU: 90 00 [09:34:08]wFMCommunicate OK [09:34:08]wFMCommunicate request_size=255 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 36 39 06 04 34 00 D0 92 D0 BE D0 B4 D0 B0 20 54 69 65 6E 20 53 68 61 6E 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [09:34:08]Write to MH i2c: E2 02 01 09 0F 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 36 39 06 04 34 00 D0 92 D0 BE D0 B4 D0 B0 20 54 69 65 6E 20 53 68 61 6E 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 A4 [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [09:34:08]RAPDU: 90 00 [09:34:08]wFMCommunicate OK [09:34:08]wFMCommunicate request_size=166 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 0D 02 02 A1 94 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 07 00 00 00 00 07 04 06 00 94 43 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 93 82 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 93 10 00 00 35 04 06 00 DC 34 79 74 C5 03 [09:34:08]Write to MH i2c: E2 A9 00 0A 0F 80 0D 02 02 A1 00 94 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 07 00 00 00 00 07 04 06 00 94 43 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 93 82 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 93 10 00 00 35 04 06 00 DC 34 79 74 C5 03 00 00 3C [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]OFD Sender: No OFD packet to send [09:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [09:34:08]RAPDU: 90 00 [09:34:08]wFMCommunicate OK [09:34:08]wFMCommunicate request_size=4 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 0D 03 02 [09:34:08]Write to MH i2c: E2 08 00 0B 0F 80 0D 03 02 00 00 00 00 95 [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 0B 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 0B 00 0B 0F 00 1A D6 2B B5 51 6C 88 A8 90 00 53 [09:34:08]RAPDU: 1A D6 2B B5 51 6C 88 A8 90 00 [09:34:08]wFMCommunicate OK [09:34:08]SAM_PROTO_SignData done [09:34:08]FM_MakeSignedData done [09:34:08]CreateOFDProtocolMessage [09:34:08]wFMCommunicate request_size=4 [09:34:08]MH_SAM_APDU [09:34:08]CAPDU: 80 11 00 00 [09:34:08]Write to MH i2c: E2 08 00 0C 0F 80 11 00 00 00 00 00 00 95 [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:08]Read from MH i2c: E2 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 17 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: E2 17 00 0C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 E8 [09:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [09:34:08]wFMCommunicate OK [09:34:08]CreateOFDProtocolMessage done [09:34:08]OFDSenderStorePacket 4243 [09:34:08]StoreOFDPacket docnum=4243 [09:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 AB 01 00 00 23 FC A3 01 12 D6 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 36 39 06 04 34 00 D0 92 D0 BE D0 B4 D0 B0 20 54 69 65 6E 20 53 68 61 6E 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 07 00 00 00 00 07 04 06 00 94 43 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 93 82 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 93 10 00 00 35 04 06 00 DC 34 79 74 C5 03 1A D6 2B B5 51 6C 88 A8 [09:34:08]CheckFolder [09:34:08]dirname=/storage/ofd_packets [09:34:08]CheckFolder done [09:34:08]ProducePacketName [09:34:08]name=ofd_packets/00004243 [09:34:08]NVStorageSaveData ofd_packets/00004243 [09:34:08]File name is /storage/ofd_packets/00004243 [09:34:08]Write 457 bytes [09:34:08]NVStorageSaveData done [09:34:08]OFDSenderStorePacket done [09:34:08]KKMCreateOFDPacket done [09:34:08]NVStorageSaveData kkm_last_timestamp [09:34:08]File name is /storage/kkm_last_timestamp [09:34:08]Write 4 bytes [09:34:08]NVStorageSaveData done [09:34:08]ExternCall_PrintAddStr [09:34:08]wPrintStart [09:34:08]Write to MH i2c: 01 00 00 0D 0F 1C [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: 01 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: 01 07 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: 01 07 00 0D 0F 00 00 00 00 00 FF 0F 31 [09:34:08]RasterBufferAndPrint [09:34:08]line Счет N : (3)4495 [09:34:08]line ИНН: 02508201610067 [09:34:08]line Контрольно-Кассовый Чек [09:34:08]line ПРОДАЖА [09:34:08]line Товар: 4640030092567 [09:34:08]line Сигареты Esse Exchange Summer Red [09:34:08]line 1.000 * 138.00 [09:34:08]line = 138.00 [09:34:08]line НДС 12% НСП 1% [09:34:08]line > о реализуемом товаре [09:34:08]line Товар: 4700003010469 [09:34:08]line Вода Tien Shan н.газ лимон ПЭТ 0,5л [09:34:08]line 1.000 * 35.00 [09:34:08]line = 35.00 [09:34:08]line НДС 12% НСП 1% [09:34:08]line > о реализуемом товаре [09:34:08]line ИТОГО: 173.00 [09:34:08]line НСП 1% : 1.53 [09:34:08]line НДС 12% : 18.37 [09:34:08]line Наличными: 173.00 [09:34:08]line Безнал.: 0.00 [09:34:08]line Место: АЗС № 116 "Партнер Нефть" [09:34:08]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [09:34:08]line СНО: Общий режим [09:34:08]line Чек 18 06.06.2024 09:34 [09:34:08]line Смена: 85 ФФД: 1.0 [09:34:08]line ЗНМ: 0300000233 [09:34:08]line РНМ: 0000000000145775 [09:34:08]line Версия ККМ: v1.0 [09:34:08]line ФМ: 0000000000959360 [09:34:08]line ФД: 4243 [09:34:08]line ФПД: 242117934105859 [09:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T093411&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4243&fm=242117934105859&tin=02508201610067®Number=0000000000145775&sum=17300 [09:34:08]line 0 [09:34:08]OFD Sender: Processing packet 4243 [packets to send 2, broken 1] [09:34:08]ProducePacketName [09:34:08]name=ofd_packets/00004243 [09:34:08]OFD Sender: To server: pG, [09:34:08]CommunicateWithHost lk.salyk.kg:30040 [09:34:08]ConnectInit lk.salyk.kg [09:34:08]written 0, free lines is 4095 [09:34:09]Connected sock=10 [09:34:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 AB 01 00 00 23 FC A3 01 12 D6 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 36 39 06 04 34 00 D0 92 D0 BE D0 B4 D0 B0 20 54 69 65 6E 20 53 68 61 6E 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 07 00 00 00 00 07 04 06 00 94 43 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 93 82 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 93 10 00 00 35 04 06 00 DC 34 79 74 C5 03 1A D6 2B B5 51 6C 88 A8 [09:34:09]Write to MH i2c: 01 00 00 3D 0F 4C [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: 01 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: 01 07 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: 01 07 00 3D 0F 00 00 00 00 00 21 0C 80 [09:34:09]RasterBufferAndPrint [09:34:09]line [09:34:09]line [09:34:09]line [09:34:09]line [09:34:09]line [09:34:09]written 0, free lines is 3109 [09:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 2A 80 47 00 75 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 93 10 00 00 F4 03 04 00 93 2E 61 66 B6 04 01 00 00 A2 69 28 FC 9C 46 6C D1 [09:34:09]CommunicateWithHost err = 0 [09:34:09]CheckOFDResponse [09:34:09]1017 (14) - 77093643461234 [09:34:09]1041 (16) - 0000000000959360 [09:34:09]1040 (4) - 4243 [09:34:09]1012 (4) - 06.06.2024 03:35 [09:34:09]1206 (1) - 0 [09:34:09]OFD Sender: Remove packet 4243 [09:34:09]ProducePacketName [09:34:09]name=ofd_packets/00004243 [09:34:09]NVStorageDeleteData [09:34:09]MH_Cut [09:34:09]Write to MH i2c: D1 01 00 44 0F 01 25 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: D1 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: D1 01 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: D1 01 00 44 0F 00 24 [09:34:09]Write to MH i2c: 01 00 00 45 0F 54 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]OFD Sender: No OFD packet to send [09:34:10]*** Cut start [09:34:10]*** Partial cut [09:34:10]*** CUTSNS_PIN = 1 [09:34:10]*** CUTSNS_PIN = 0 [09:34:10]*** Brake cut motor [09:34:11]Read from MH i2c: 01 [09:34:11]MH_I2C_Read... [09:34:11]*** Stop cut motor [09:34:11]*** Cut end [09:34:11]Read from MH i2c: 01 07 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: 01 07 00 45 0F 00 00 00 00 00 FF 0F 69 [09:34:11]process_action close_receipt done [09:34:11]requested_data is exist [09:34:11]produce_requested_data [09:34:11]requested_item fm.sn is exist - process it [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 11 00 00 [09:34:11]Write to MH i2c: E2 08 00 46 0F 80 11 00 00 00 00 00 00 CF [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 17 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 17 00 46 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 22 [09:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [09:34:11]wFMCommunicate OK [09:34:11]requested_item fd.num is exist - process it [09:34:11]SAM_PROTO_GetFieldsCounters [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 13 00 00 [09:34:11]Write to MH i2c: E2 08 00 47 0F 80 13 00 00 00 00 00 00 D2 [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 62 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 62 00 47 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 93 10 00 00 0E 04 04 00 55 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 25 [09:34:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 93 10 00 00 0E 04 04 00 55 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:34:11]wFMCommunicate OK [09:34:11]SAM_PROTO_GetFieldsCounters done [09:34:11]requested_item shift.num is exist - process it [09:34:11]requested_item shift.opened is exist - process it [09:34:11]req_shift_opened [09:34:11]FM_GetShiftState [09:34:11]SAM_PROTO_GetShiftState [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 13 01 00 [09:34:11]Write to MH i2c: E2 08 00 48 0F 80 13 01 00 00 00 00 00 D4 [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 0E 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 0E 00 48 0F 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 8D [09:34:11]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [09:34:11]wFMCommunicate OK [09:34:11]SAM_PROTO_GetShiftState done [09:34:11]FM_GetShiftState done [09:34:11]req_shift_opened done [09:34:11]requested_item shift.open_date is exist - process it [09:34:11]req_shift_open_date [09:34:11]req_shift_open_date done [09:34:11]produce_requested_data done [09:34:11]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4243,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [09:34:11]process_action_free close_receipt [09:34:11]json_value_free [09:34:11]json_value_free done [09:34:11]process_json_proto returns [09:34:11]Send response to host [09:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4243,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [09:34:11]free response buf [09:34:11]execute_script done [09:34:11]execute_script returns [09:34:11]free content buf [09:34:11]Sock 8.Close socket [09:34:11]Sock 8.Thread stoped [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:01]accept exits with 9 [09:38:01]New connection [09:38:01]New thread 3066629476 created [09:38:01]Thread 3066772836 joined [09:38:01]Waiting for new connection... [09:38:01] Sock 9.Parse request [09:38:01]Sock 9.Check first char [09:38:01]Sock 9.First char is OK [09:38:01]request: POST /json_proto HTTP/1.0 [09:38:01]Method: POST [09:38:01]URL: /json_proto [09:38:01]Method is POST - this is cgi request [09:38:01]url: /json_proto [09:38:01]query_string will be loaded in cgi processing [09:38:01]execute_cgi json_proto POST (null) [09:38:01]execute_cgi path=json_proto method=POST [09:38:01]POST find Content-Length [09:38:01]Host: 172.17.56.68:8080 [09:38:01]Content-Length: 790 [09:38:01]Content-Type: application/json [09:38:01] [09:38:01]POST finish read [09:38:01]Found Content-Length = 790 [09:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4496", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:01]execute_script... [09:38:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4496", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:01]POST & json_proto [09:38:01]process_json_proto [09:38:01]json parsed OK: [09:38:01]protocol is kg_v1.0 [09:38:01]action value=close_receipt [09:38:01]process_action close_receipt [09:38:01]cmd_close_receipt [09:38:01]MH_GetDate [09:38:01]Write to MH i2c: F0 00 00 49 0F 47 [09:38:01]Write i2c OK [09:38:01]MH_I2C_Read... [09:38:01]Read from MH i2c: F0 [09:38:01]MH_I2C_Read... [09:38:01]Read from MH i2c: F0 09 00 [09:38:01]MH_I2C_Read... [09:38:01]Read from MH i2c: F0 09 00 49 0F 00 7D 83 61 66 3A 8F 60 66 A6 [09:38:01]GetLastDocTimeStamp 1717666451 [09:38:01]current date 1717666685 [09:38:01]FM_GetShiftState [09:38:01]SAM_PROTO_GetShiftState [09:38:01]wFMCommunicate request_size=4 [09:38:01]MH_SAM_APDU [09:38:01]CAPDU: 80 13 01 00 [09:38:01]Write to MH i2c: E2 08 00 4A 0F 80 13 01 00 00 00 00 00 D6 [09:38:01]Write i2c OK [09:38:01]MH_I2C_Read... [09:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:01]Read from MH i2c: E2 [09:38:01]MH_I2C_Read... [09:38:01]Read from MH i2c: E2 0E 00 [09:38:01]MH_I2C_Read... [09:38:01]Read from MH i2c: E2 0E 00 4A 0F 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 8F [09:38:01]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [09:38:01]wFMCommunicate OK [09:38:01]SAM_PROTO_GetShiftState done [09:38:01]FM_GetShiftState done [09:38:01]opened in 1717632745 [09:38:01]opened+sec_in_day 1717719145 [09:38:01]quantity*price = 13800 [09:38:01]sum+1 = 13801 [09:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 19 06.06.2024 09:38 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: О! деньги ФМ: 0000000000959360 ФД: 4244 ФПД: 204713044051191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T093805&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4244&fm=204713044051191&tin=02508201610067®Number=0000000000145775&sum=13800 0 [09:38:02]StoreToDocumentArchive [09:38:02]shift 85 fd 4244 [09:38:02]save to /storage/0085/doc_00004244 [09:38:02]save last doc name /storage/0085/doc_00004244 to /storage/kkm_last_doc_name [09:38:02]save OK [09:38:02]Clear old archive folders... [09:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=278 [09:38:02]tlvbuf is B6E95BD0 [09:38:02]SAM_PROTO_ClearQueue [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 09 00 00 [09:38:02]Write to MH i2c: E2 08 00 57 0F 80 09 00 00 00 00 00 00 D8 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]SAM_PROTO_ClearQueue done [09:38:02]KKMCreateOFDPacket [09:38:02]OFDProtocolAddRootSTLVToBuf [09:38:02]FM_MakeSignedData [09:38:02]FM_MakeSignedData [09:38:02]SAM_PROTO_SignData [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 01 02 [09:38:02]Write to MH i2c: E2 08 00 58 0F 80 0D 01 02 00 00 00 00 E0 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]wFMCommunicate request_size=255 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7D 83 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 [09:38:02]Write to MH i2c: E2 02 01 59 0F 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7D 83 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 00 00 D8 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 59 0F 00 90 00 DC [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]wFMCommunicate request_size=37 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 94 10 00 00 35 04 06 00 BA 2F 78 45 84 F7 [09:38:02]Write to MH i2c: E2 28 00 5A 0F 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 94 10 00 00 35 04 06 00 BA 2F 78 45 84 F7 00 00 FF [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 5A 0F 00 90 00 DD [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 03 02 [09:38:02]Write to MH i2c: E2 08 00 5B 0F 80 0D 03 02 00 00 00 00 E5 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 0B 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 0B 00 5B 0F 00 FB 68 6B 12 8B 16 60 7F 90 00 46 [09:38:02]RAPDU: FB 68 6B 12 8B 16 60 7F 90 00 [09:38:02]wFMCommunicate OK [09:38:02]SAM_PROTO_SignData done [09:38:02]FM_MakeSignedData done [09:38:02]CreateOFDProtocolMessage [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 11 00 00 [09:38:02]Write to MH i2c: E2 08 00 5C 0F 80 11 00 00 00 00 00 00 E5 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 17 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 17 00 5C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 38 [09:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [09:38:02]wFMCommunicate OK [09:38:02]CreateOFDProtocolMessage done [09:38:02]OFDSenderStorePacket 4244 [09:38:02]StoreOFDPacket docnum=4244 [09:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 A4 63 22 01 96 10 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7D 83 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 94 10 00 00 35 04 06 00 BA 2F 78 45 84 F7 FB 68 6B 12 8B 16 60 7F [09:38:02]CheckFolder [09:38:02]dirname=/storage/ofd_packets [09:38:02]CheckFolder done [09:38:02]ProducePacketName [09:38:02]name=ofd_packets/00004244 [09:38:02]NVStorageSaveData ofd_packets/00004244 [09:38:02]File name is /storage/ofd_packets/00004244 [09:38:02]Write 328 bytes [09:38:02]NVStorageSaveData done [09:38:02]OFDSenderStorePacket done [09:38:02]KKMCreateOFDPacket done [09:38:02]NVStorageSaveData kkm_last_timestamp [09:38:02]File name is /storage/kkm_last_timestamp [09:38:02]Write 4 bytes [09:38:02]NVStorageSaveData done [09:38:02]ExternCall_PrintAddStr [09:38:02]wPrintStart [09:38:02]Write to MH i2c: 01 00 00 5D 0F 6C [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: 01 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: 01 07 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: 01 07 00 5D 0F 00 00 00 00 00 FF 0F 81 [09:38:02]RasterBufferAndPrint [09:38:02]line Счет N : (3)4496 [09:38:02]line ИНН: 02508201610067 [09:38:02]line Контрольно-Кассовый Чек [09:38:02]line ПРОДАЖА [09:38:02]line Товар: 4640030092499 [09:38:02]line Сигареты ESSE SENSE Himalaya [09:38:02]line 1.000 * 138.00 [09:38:02]line = 138.00 [09:38:02]line НДС 12% НСП 1% [09:38:02]line > о реализуемом товаре [09:38:02]line ИТОГО: 138.00 [09:38:02]line НСП 1% : 1.22 [09:38:02]line НДС 12% : 14.65 [09:38:02]line Наличными: 0.00 [09:38:02]line Безнал.: 138.00 [09:38:02]line Место: АЗС № 116 "Партнер Нефть" [09:38:02]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [09:38:02]line СНО: Общий режим [09:38:02]line Чек 19 06.06.2024 09:38 [09:38:02]line Смена: 85 ФФД: 1.0 [09:38:02]line ЗНМ: 0300000233 [09:38:02]line РНМ: 0000000000145775 [09:38:02]line Версия ККМ: v1.0 [09:38:02]line Платежная система: О! деньги [09:38:02]line ФМ: 0000000000959360 [09:38:02]line ФД: 4244 [09:38:02]line ФПД: 204713044051191 [09:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T093805&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4244&fm=204713044051191&tin=02508201610067®Number=0000000000145775&sum=13800 [09:38:03]line 0 [09:38:03]OFD Sender: Processing packet 4244 [packets to send 2, broken 1] [09:38:03]ProducePacketName [09:38:03]name=ofd_packets/00004244 [09:38:03]OFD Sender: To server: pG, [09:38:03]CommunicateWithHost lk.salyk.kg:30040 [09:38:03]ConnectInit lk.salyk.kg [09:38:03]written 0, free lines is 4095 [09:38:03]Connected sock=10 [09:38:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 A4 63 22 01 96 10 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7D 83 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 94 10 00 00 35 04 06 00 BA 2F 78 45 84 F7 FB 68 6B 12 8B 16 60 7F [09:38:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 0D CB 47 00 81 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 39 35 39 33 36 30 10 04 04 00 94 10 00 00 F4 03 04 00 7D 2F 61 66 B6 04 01 00 00 4F D7 8E 57 BA 5A BE 99 [09:38:03]CommunicateWithHost err = 0 [09:38:03]CheckOFDResponse [09:38:03]1017 (14) - 77093643461234 [09:38:03]1041 (16) - 0000000000959360 [09:38:03]1040 (4) - 4244 [09:38:03]1012 (4) - 06.06.2024 03:39 [09:38:03]1206 (1) - 0 [09:38:03]OFD Sender: Remove packet 4244 [09:38:03]ProducePacketName [09:38:03]name=ofd_packets/00004244 [09:38:03]NVStorageDeleteData [09:38:03]Write to MH i2c: 01 00 00 88 0F 97 [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 07 00 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 07 00 88 0F 00 00 00 00 00 76 0C 20 [09:38:03]RasterBufferAndPrint [09:38:03]line [09:38:03]line [09:38:03]line [09:38:03]line [09:38:03]line [09:38:03]written 0, free lines is 3193 [09:38:03]MH_Cut [09:38:03]Write to MH i2c: D1 01 00 8F 0F 01 70 [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: D1 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: D1 01 00 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: D1 01 00 8F 0F 00 6F [09:38:03]Write to MH i2c: 01 00 00 90 0F 9F [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]OFD Sender: No OFD packet to send [09:38:04]*** Cut start [09:38:04]*** Partial cut [09:38:04]*** CUTSNS_PIN = 1 [09:38:04]*** CUTSNS_PIN = 0 [09:38:04]*** Brake cut motor [09:38:05]Read from MH i2c: 01 [09:38:05]MH_I2C_Read... [09:38:05]*** Stop cut motor [09:38:05]*** Cut end [09:38:05]Read from MH i2c: 01 07 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: 01 07 00 90 0F 00 00 00 00 00 FF 0F B4 [09:38:05]process_action close_receipt done [09:38:05]requested_data is exist [09:38:05]produce_requested_data [09:38:05]requested_item fm.sn is exist - process it [09:38:05]wFMCommunicate request_size=4 [09:38:05]MH_SAM_APDU [09:38:05]CAPDU: 80 11 00 00 [09:38:05]Write to MH i2c: E2 08 00 91 0F 80 11 00 00 00 00 00 00 1A [09:38:05]Write i2c OK [09:38:05]MH_I2C_Read... [09:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:05]Read from MH i2c: E2 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 17 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 17 00 91 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 6D [09:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [09:38:05]wFMCommunicate OK [09:38:05]requested_item fd.num is exist - process it [09:38:05]SAM_PROTO_GetFieldsCounters [09:38:05]wFMCommunicate request_size=4 [09:38:05]MH_SAM_APDU [09:38:05]CAPDU: 80 13 00 00 [09:38:05]Write to MH i2c: E2 08 00 92 0F 80 13 00 00 00 00 00 00 1D [09:38:05]Write i2c OK [09:38:05]MH_I2C_Read... [09:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:05]Read from MH i2c: E2 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 62 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 62 00 92 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 94 10 00 00 0E 04 04 00 55 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 74 [09:38:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 94 10 00 00 0E 04 04 00 55 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:38:05]wFMCommunicate OK [09:38:05]SAM_PROTO_GetFieldsCounters done [09:38:05]requested_item shift.num is exist - process it [09:38:05]requested_item shift.opened is exist - process it [09:38:05]req_shift_opened [09:38:05]FM_GetShiftState [09:38:05]SAM_PROTO_GetShiftState [09:38:05]wFMCommunicate request_size=4 [09:38:05]MH_SAM_APDU [09:38:05]CAPDU: 80 13 01 00 [09:38:05]Write to MH i2c: E2 08 00 93 0F 80 13 01 00 00 00 00 00 1F [09:38:05]Write i2c OK [09:38:05]MH_I2C_Read... [09:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:05]Read from MH i2c: E2 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 0E 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 0E 00 93 0F 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 D8 [09:38:05]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [09:38:05]wFMCommunicate OK [09:38:05]SAM_PROTO_GetShiftState done [09:38:05]FM_GetShiftState done [09:38:05]req_shift_opened done [09:38:05]requested_item shift.open_date is exist - process it [09:38:05]req_shift_open_date [09:38:05]req_shift_open_date done [09:38:05]produce_requested_data done [09:38:05]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4244,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [09:38:05]process_action_free close_receipt [09:38:05]json_value_free [09:38:05]json_value_free done [09:38:05]process_json_proto returns [09:38:05]Send response to host [09:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4244,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [09:38:05]free response buf [09:38:05]execute_script done [09:38:05]execute_script returns [09:38:05]free content buf [09:38:05]Sock 9.Close socket [09:38:05]Sock 9.Thread stoped [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]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:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [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:34]accept exits with 8 [10:03:34]New connection [10:03:34]New thread 3066772836 created [10:03:34]Thread 3066629476 joined [10:03:34]Waiting for new connection... [10:03:34] Sock 8.Parse request [10:03:34]Sock 8.Check first char [10:03:34]Sock 8.First char is OK [10:03:34]request: POST /json_proto HTTP/1.0 [10:03:34]Method: POST [10:03:34]URL: /json_proto [10:03:34]Method is POST - this is cgi request [10:03:34]url: /json_proto [10:03:34]query_string will be loaded in cgi processing [10:03:34]execute_cgi json_proto POST (null) [10:03:34]execute_cgi path=json_proto method=POST [10:03:34]POST find Content-Length [10:03:34]Host: 172.17.56.68:8080 [10:03:34]Content-Length: 1083 [10:03:34]Content-Type: application/json [10:03:34] [10:03:34]POST finish read [10:03:34]Found Content-Length = 1083 [10:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4497", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:34]execute_script... [10:03: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 : (3)4497", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:34]POST & json_proto [10:03:34]process_json_proto [10:03:34]json parsed OK: [10:03:34]protocol is kg_v1.0 [10:03:34]action value=close_receipt [10:03:34]process_action close_receipt [10:03:34]cmd_close_receipt [10:03:34]MH_GetDate [10:03:34]Write to MH i2c: F0 00 00 94 0F 92 [10:03:34]Write i2c OK [10:03:34]MH_I2C_Read... [10:03:34]Read from MH i2c: F0 [10:03:34]MH_I2C_Read... [10:03:34]Read from MH i2c: F0 09 00 [10:03:34]MH_I2C_Read... [10:03:34]Read from MH i2c: F0 09 00 94 0F 00 7B 89 61 66 3A 8F 60 66 F5 [10:03:34]GetLastDocTimeStamp 1717666685 [10:03:34]current date 1717668219 [10:03:34]FM_GetShiftState [10:03:34]SAM_PROTO_GetShiftState [10:03:34]wFMCommunicate request_size=4 [10:03:34]MH_SAM_APDU [10:03:34]CAPDU: 80 13 01 00 [10:03:34]Write to MH i2c: E2 08 00 95 0F 80 13 01 00 00 00 00 00 21 [10:03:34]Write i2c OK [10:03:34]MH_I2C_Read... [10:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:34]Read from MH i2c: E2 [10:03:34]MH_I2C_Read... [10:03:34]Read from MH i2c: E2 0E 00 [10:03:34]MH_I2C_Read... [10:03:34]Read from MH i2c: E2 0E 00 95 0F 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 DA [10:03:34]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [10:03:34]wFMCommunicate OK [10:03:34]SAM_PROTO_GetShiftState done [10:03:34]FM_GetShiftState done [10:03:34]opened in 1717632745 [10:03:34]opened+sec_in_day 1717719145 [10:03:34]quantity*price = 7500 [10:03:34]sum+1 = 7501 [10:03:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.17 Наличными: 0.00 Безнал.: 190.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 20 06.06.2024 10:03 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959360 ФД: 4245 ФПД: 159428644732975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T100339&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4245&fm=159428644732975&tin=02508201610067®Number=0000000000145775&sum=19000 0 [10:03:35]StoreToDocumentArchive [10:03:35]shift 85 fd 4245 [10:03:35]save to /storage/0085/doc_00004245 [10:03:35]save last doc name /storage/0085/doc_00004245 to /storage/kkm_last_doc_name [10:03:35]save OK [10:03:35]Clear old archive folders... [10:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=392 [10:03:35]tlvbuf is 019A1590 [10:03:35]SAM_PROTO_ClearQueue [10:03:35]wFMCommunicate request_size=4 [10:03:35]MH_SAM_APDU [10:03:35]CAPDU: 80 09 00 00 [10:03:35]Write to MH i2c: E2 08 00 A2 0F 80 09 00 00 00 00 00 00 23 [10:03:35]Write i2c OK [10:03:35]MH_I2C_Read... [10:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:35]Read from MH i2c: E2 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 03 00 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 03 00 A2 0F 00 90 00 25 [10:03:35]RAPDU: 90 00 [10:03:35]wFMCommunicate OK [10:03:35]SAM_PROTO_ClearQueue done [10:03:35]KKMCreateOFDPacket [10:03:35]OFDProtocolAddRootSTLVToBuf [10:03:35]FM_MakeSignedData [10:03:35]FM_MakeSignedData [10:03:35]SAM_PROTO_SignData [10:03:35]wFMCommunicate request_size=4 [10:03:35]MH_SAM_APDU [10:03:35]CAPDU: 80 0D 01 02 [10:03:35]Write to MH i2c: E2 08 00 A3 0F 80 0D 01 02 00 00 00 00 2B [10:03:35]Write i2c OK [10:03:35]MH_I2C_Read... [10:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:35]Read from MH i2c: E2 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 03 00 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 03 00 A3 0F 00 90 00 26 [10:03:35]RAPDU: 90 00 [10:03:35]wFMCommunicate OK [10:03:35]wFMCommunicate request_size=255 [10:03:35]MH_SAM_APDU [10:03:35]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [10:03:35]Write to MH i2c: E2 02 01 A4 0F 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 79 [10:03:36]Write i2c OK [10:03:36]MH_I2C_Read... [10:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:36]Read from MH i2c: E2 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 03 00 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 03 00 A4 0F 00 90 00 27 [10:03:36]RAPDU: 90 00 [10:03:36]wFMCommunicate OK [10:03:36]wFMCommunicate request_size=151 [10:03:36]MH_SAM_APDU [10:03:36]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7B 89 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 95 10 00 00 35 04 06 00 90 FF DF BC 80 2F [10:03:36]Write to MH i2c: E2 9A 00 A5 0F 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7B 89 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 95 10 00 00 35 04 06 00 90 FF DF BC 80 2F 00 00 4C [10:03:36]Write i2c OK [10:03:36]MH_I2C_Read... [10:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:36]Read from MH i2c: E2 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 03 00 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 03 00 A5 0F 00 90 00 28 [10:03:36]RAPDU: 90 00 [10:03:36]wFMCommunicate OK [10:03:36]wFMCommunicate request_size=4 [10:03:36]MH_SAM_APDU [10:03:36]CAPDU: 80 0D 03 02 [10:03:36]Write to MH i2c: E2 08 00 A6 0F 80 0D 03 02 00 00 00 00 30 [10:03:36]Write i2c OK [10:03:36]MH_I2C_Read... [10:03:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:36]Read from MH i2c: E2 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 0B 00 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 0B 00 A6 0F 00 E9 54 3A E7 19 5F 7B 36 90 00 B8 [10:03:36]RAPDU: E9 54 3A E7 19 5F 7B 36 90 00 [10:03:36]wFMCommunicate OK [10:03:36]SAM_PROTO_SignData done [10:03:36]FM_MakeSignedData done [10:03:36]CreateOFDProtocolMessage [10:03:36]wFMCommunicate request_size=4 [10:03:36]MH_SAM_APDU [10:03:36]CAPDU: 80 11 00 00 [10:03:36]Write to MH i2c: E2 08 00 A7 0F 80 11 00 00 00 00 00 00 30 [10:03:36]Write i2c OK [10:03:36]MH_I2C_Read... [10:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:36]Read from MH i2c: E2 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 17 00 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 17 00 A7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 83 [10:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [10:03:36]wFMCommunicate OK [10:03:36]CreateOFDProtocolMessage done [10:03:36]OFDSenderStorePacket 4245 [10:03:36]StoreOFDPacket docnum=4245 [10:03:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 9C 01 00 00 55 4D 94 01 38 B6 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7B 89 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 95 10 00 00 35 04 06 00 90 FF DF BC 80 2F E9 54 3A E7 19 5F 7B 36 [10:03:36]CheckFolder [10:03:36]dirname=/storage/ofd_packets [10:03:36]CheckFolder done [10:03:36]ProducePacketName [10:03:36]name=ofd_packets/00004245 [10:03:36]NVStorageSaveData ofd_packets/00004245 [10:03:36]File name is /storage/ofd_packets/00004245 [10:03:36]Write 442 bytes [10:03:36]NVStorageSaveData done [10:03:36]OFDSenderStorePacket done [10:03:36]KKMCreateOFDPacket done [10:03:36]NVStorageSaveData kkm_last_timestamp [10:03:36]File name is /storage/kkm_last_timestamp [10:03:36]Write 4 bytes [10:03:36]NVStorageSaveData done [10:03:36]ExternCall_PrintAddStr [10:03:36]wPrintStart [10:03:36]Write to MH i2c: 01 00 00 A8 0F B7 [10:03:36]Write i2c OK [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: 01 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: 01 07 00 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: 01 07 00 A8 0F 00 00 00 00 00 FF 0F CC [10:03:36]RasterBufferAndPrint [10:03:36]line Счет N : (3)4497 [10:03:36]line ИНН: 02508201610067 [10:03:36]line Контрольно-Кассовый Чек [10:03:36]line ПРОДАЖА [10:03:36]line Товар: 2000034730018 [10:03:36]line Кофе Американо (GABB TRADE) [10:03:36]line 1.000 * 75.00 [10:03:36]line = 75.00 [10:03:36]line НДС 12% НСП 1% [10:03:36]line > о реализуемом товаре [10:03:36]line Товар: 2000036210013 [10:03:36]line Кофе Капучино (GABB TRADE) [10:03:36]line 1.000 * 115.00 [10:03:36]line = 115.00 [10:03:36]line НДС 12% НСП 1% [10:03:36]line > о реализуемом товаре [10:03:36]line ИТОГО: 190.00 [10:03:36]line НСП 1% : 1.68 [10:03:36]line НДС 12% : 20.17 [10:03:36]line Наличными: 0.00 [10:03:36]OFD Sender: Processing packet 4245 [packets to send 2, broken 1] [10:03:36]ProducePacketName [10:03:36]name=ofd_packets/00004245 [10:03:36]OFD Sender: To server: pG, [10:03:36]CommunicateWithHost lk.salyk.kg:30040 [10:03:36]ConnectInit lk.salyk.kg [10:03:36]line Безнал.: 190.00 [10:03:36]line Место: АЗС № 116 "Партнер Нефть" [10:03:36]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [10:03:36]line СНО: Общий режим [10:03:36]line Чек 20 06.06.2024 10:03 [10:03:36]line Смена: 85 ФФД: 1.0 [10:03:36]line ЗНМ: 0300000233 [10:03:36]line РНМ: 0000000000145775 [10:03:36]line Версия ККМ: v1.0 [10:03:36]line Платежная система: Бакай Банк [10:03:36]line ФМ: 0000000000959360 [10:03:36]line ФД: 4245 [10:03:36]line ФПД: 159428644732975 [10:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T100339&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4245&fm=159428644732975&tin=02508201610067®Number=0000000000145775&sum=19000 [10:03:36]line 0 [10:03:36]written 0, free lines is 4095 [10:03:36]Connected sock=10 [10:03:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 9C 01 00 00 55 4D 94 01 38 B6 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7B 89 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 95 10 00 00 35 04 06 00 90 FF DF BC 80 2F E9 54 3A E7 19 5F 7B 36 [10:03:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 BB F5 47 00 28 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 95 10 00 00 F4 03 04 00 7B 35 61 66 B6 04 01 00 00 27 8A B8 35 31 34 9C 47 [10:03:37]CommunicateWithHost err = 0 [10:03:37]CheckOFDResponse [10:03:37]1017 (14) - 77093643461234 [10:03:37]1041 (16) - 0000000000959360 [10:03:37]1040 (4) - 4245 [10:03:37]1012 (4) - 06.06.2024 04:05 [10:03:37]1206 (1) - 0 [10:03:37]OFD Sender: Remove packet 4245 [10:03:37]ProducePacketName [10:03:37]name=ofd_packets/00004245 [10:03:37]NVStorageDeleteData [10:03:37]Write to MH i2c: 01 00 00 D9 0F E8 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: 01 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: 01 07 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: 01 07 00 D9 0F 00 00 00 00 00 30 0C 2B [10:03:37]RasterBufferAndPrint [10:03:37]line [10:03:37]line [10:03:37]line [10:03:37]line [10:03:37]line [10:03:37]written 0, free lines is 3125 [10:03:37]MH_Cut [10:03:37]Write to MH i2c: D1 01 00 E0 0F 01 C1 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: D1 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: D1 01 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: D1 01 00 E0 0F 00 C0 [10:03:37]Write to MH i2c: 01 00 00 E1 0F F0 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]OFD Sender: No OFD packet to send [10:03:38]*** Cut start [10:03:38]*** Partial cut [10:03:38]*** CUTSNS_PIN = 1 [10:03:38]*** CUTSNS_PIN = 0 [10:03:38]*** Brake cut motor [10:03:39]Read from MH i2c: 01 [10:03:39]MH_I2C_Read... [10:03:39]*** Stop cut motor [10:03:39]*** Cut end [10:03:39]Read from MH i2c: 01 07 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: 01 07 00 E1 0F 00 00 00 00 00 FF 0F 05 [10:03:39]process_action close_receipt done [10:03:39]requested_data is exist [10:03:39]produce_requested_data [10:03:39]requested_item fm.sn is exist - process it [10:03:39]wFMCommunicate request_size=4 [10:03:39]MH_SAM_APDU [10:03:39]CAPDU: 80 11 00 00 [10:03:39]Write to MH i2c: E2 08 00 E2 0F 80 11 00 00 00 00 00 00 6B [10:03:39]Write i2c OK [10:03:39]MH_I2C_Read... [10:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:39]Read from MH i2c: E2 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 17 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 17 00 E2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 BE [10:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [10:03:39]wFMCommunicate OK [10:03:39]requested_item fd.num is exist - process it [10:03:39]SAM_PROTO_GetFieldsCounters [10:03:39]wFMCommunicate request_size=4 [10:03:39]MH_SAM_APDU [10:03:39]CAPDU: 80 13 00 00 [10:03:39]Write to MH i2c: E2 08 00 E3 0F 80 13 00 00 00 00 00 00 6E [10:03:39]Write i2c OK [10:03:39]MH_I2C_Read... [10:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:39]Read from MH i2c: E2 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 62 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 62 00 E3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 95 10 00 00 0E 04 04 00 55 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 C9 [10:03:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 95 10 00 00 0E 04 04 00 55 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 [10:03:39]wFMCommunicate OK [10:03:39]SAM_PROTO_GetFieldsCounters done [10:03:39]requested_item shift.num is exist - process it [10:03:39]requested_item shift.opened is exist - process it [10:03:39]req_shift_opened [10:03:39]FM_GetShiftState [10:03:39]SAM_PROTO_GetShiftState [10:03:39]wFMCommunicate request_size=4 [10:03:39]MH_SAM_APDU [10:03:39]CAPDU: 80 13 01 00 [10:03:39]Write to MH i2c: E2 08 00 E4 0F 80 13 01 00 00 00 00 00 70 [10:03:39]Write i2c OK [10:03:39]MH_I2C_Read... [10:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:39]Read from MH i2c: E2 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 0E 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 0E 00 E4 0F 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 29 [10:03:39]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [10:03:39]wFMCommunicate OK [10:03:39]SAM_PROTO_GetShiftState done [10:03:39]FM_GetShiftState done [10:03:39]req_shift_opened done [10:03:39]requested_item shift.open_date is exist - process it [10:03:39]req_shift_open_date [10:03:39]req_shift_open_date done [10:03:39]produce_requested_data done [10:03:39]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4245,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [10:03:39]process_action_free close_receipt [10:03:39]json_value_free [10:03:39]json_value_free done [10:03:39]process_json_proto returns [10:03:39]Send response to host [10:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4245,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [10:03:39]free response buf [10:03:39]execute_script done [10:03:39]execute_script returns [10:03:39]free content buf [10:03:39]Sock 8.Close socket [10:03:39]Sock 8.Thread stoped [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:54]int [10:11:54]Write to MH i2c: 01 00 00 E5 0F F4 [10:11:54]*** FLAG_PRN_KEY set [10:11:54]Write i2c OK [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 07 00 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 07 00 E5 0F 00 08 00 00 00 FF 0F 11 [10:11:54]state=0 [10:11:54]Key pressed [10:11:54]Feed [10:11:54]Write to MH i2c: D8 00 00 E6 0F CC [10:11:54]Write i2c OK [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: D8 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: D8 01 00 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: D8 01 00 E6 0F 00 CD [10:11:54]int [10:11:54]Write to MH i2c: 01 00 00 E7 0F F6 [10:11:54]Write i2c OK [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 07 00 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 07 00 E7 0F 00 48 00 00 00 3C 00 81 [10:11:54]state=2 [10:11:54]Key pressed [10:11:55]int [10:11:55]Write to MH i2c: 01 00 00 E8 0F F7 [10:11:55]*** FLAG_PRN_KEY reset [10:11:55]Write i2c OK [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: 01 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: 01 07 00 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: 01 07 00 E8 0F 00 00 00 00 00 F6 0F 03 [10:11:55]state=2 [10:11:55]Stop feed [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [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]accept exits with 9 [10:26:33]New connection [10:26:33]New thread 3066629476 created [10:26:33]Thread 3066772836 joined [10:26:33]Waiting for new connection... [10:26:33] Sock 9.Parse request [10:26:33]Sock 9.Check first char [10:26:33]Sock 9.First char is OK [10:26:33]request: POST /json_proto HTTP/1.0 [10:26:33]Method: POST [10:26:33]URL: /json_proto [10:26:33]Method is POST - this is cgi request [10:26:33]url: /json_proto [10:26:33]query_string will be loaded in cgi processing [10:26:33]execute_cgi json_proto POST (null) [10:26:33]execute_cgi path=json_proto method=POST [10:26:33]POST find Content-Length [10:26:33]Host: 172.17.56.68:8080 [10:26:33]Content-Length: 1058 [10:26:33]Content-Type: application/json [10:26:33] [10:26:33]POST finish read [10:26:33]Found Content-Length = 1058 [10:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4498", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:33]execute_script... [10:26: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 : (3)4498", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:33]POST & json_proto [10:26:33]process_json_proto [10:26:33]json parsed OK: [10:26:33]protocol is kg_v1.0 [10:26:33]action value=close_receipt [10:26:33]process_action close_receipt [10:26:33]cmd_close_receipt [10:26:33]MH_GetDate [10:26:33]Write to MH i2c: F0 00 00 E9 0F E7 [10:26:33]Write i2c OK [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: F0 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: F0 09 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: F0 09 00 E9 0F 00 DE 8E 61 66 3A 8F 60 66 B2 [10:26:33]GetLastDocTimeStamp 1717668219 [10:26:33]current date 1717669598 [10:26:33]FM_GetShiftState [10:26:33]SAM_PROTO_GetShiftState [10:26:33]wFMCommunicate request_size=4 [10:26:33]MH_SAM_APDU [10:26:33]CAPDU: 80 13 01 00 [10:26:33]Write to MH i2c: E2 08 00 EA 0F 80 13 01 00 00 00 00 00 76 [10:26:33]Write i2c OK [10:26:33]MH_I2C_Read... [10:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:33]Read from MH i2c: E2 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 0E 00 [10:26:33]MH_I2C_Read... [10:26:33]Read from MH i2c: E2 0E 00 EA 0F 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 2F [10:26:33]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [10:26:33]wFMCommunicate OK [10:26:33]SAM_PROTO_GetShiftState done [10:26:33]FM_GetShiftState done [10:26:33]opened in 1717632745 [10:26:33]opened+sec_in_day 1717719145 [10:26:33]quantity*price = 15000 [10:26:33]sum+1 = 15001 [10:26:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034250011 Горячий шоколад (GABB trade) 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 21 06.06.2024 10:26 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: О! деньги ФМ: 0000000000959360 ФД: 4246 ФПД: 17100360965722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T102638&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4246&fm=17100360965722&tin=02508201610067®Number=0000000000145775&sum=26000 0 [10:26:34]StoreToDocumentArchive [10:26:34]shift 85 fd 4246 [10:26:34]save to /storage/0085/doc_00004246 [10:26:34]save last doc name /storage/0085/doc_00004246 to /storage/kkm_last_doc_name [10:26:34]save OK [10:26:34]Clear old archive folders... [10:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=388 [10:26:34]tlvbuf is B6F29010 [10:26:34]SAM_PROTO_ClearQueue [10:26:34]wFMCommunicate request_size=4 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 09 00 00 [10:26:34]Write to MH i2c: E2 08 00 F7 0F 80 09 00 00 00 00 00 00 78 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [10:26:34]RAPDU: 90 00 [10:26:34]wFMCommunicate OK [10:26:34]SAM_PROTO_ClearQueue done [10:26:34]KKMCreateOFDPacket [10:26:34]OFDProtocolAddRootSTLVToBuf [10:26:34]FM_MakeSignedData [10:26:34]FM_MakeSignedData [10:26:34]SAM_PROTO_SignData [10:26:34]wFMCommunicate request_size=4 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 0D 01 02 [10:26:34]Write to MH i2c: E2 08 00 F8 0F 80 0D 01 02 00 00 00 00 80 [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:34]Read from MH i2c: E2 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 [10:26:34]MH_I2C_Read... [10:26:34]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [10:26:34]RAPDU: 90 00 [10:26:34]wFMCommunicate OK [10:26:34]wFMCommunicate request_size=255 [10:26:34]MH_SAM_APDU [10:26:34]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [10:26:34]Write to MH i2c: E2 02 01 F9 0F 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 5B [10:26:34]Write i2c OK [10:26:34]MH_I2C_Read... [10:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:35]Read from MH i2c: E2 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 03 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 03 00 F9 0F 00 90 00 7C [10:26:35]RAPDU: 90 00 [10:26:35]wFMCommunicate OK [10:26:35]wFMCommunicate request_size=147 [10:26:35]MH_SAM_APDU [10:26:35]CAPDU: 80 0D 02 02 8E F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DE 8E 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 96 10 00 00 35 04 06 00 0F 8D 7C F0 DE 5A [10:26:35]Write to MH i2c: E2 96 00 FA 0F 80 0D 02 02 8E 00 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DE 8E 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 96 10 00 00 35 04 06 00 0F 8D 7C F0 DE 5A 00 00 01 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:35]Read from MH i2c: E2 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 03 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 03 00 FA 0F 00 90 00 7D [10:26:35]RAPDU: 90 00 [10:26:35]wFMCommunicate OK [10:26:35]wFMCommunicate request_size=4 [10:26:35]MH_SAM_APDU [10:26:35]CAPDU: 80 0D 03 02 [10:26:35]Write to MH i2c: E2 08 00 FB 0F 80 0D 03 02 00 00 00 00 85 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:35]Read from MH i2c: E2 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 0B 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 0B 00 FB 0F 00 D6 07 E2 C4 20 CC 57 F5 90 00 41 [10:26:35]RAPDU: D6 07 E2 C4 20 CC 57 F5 90 00 [10:26:35]wFMCommunicate OK [10:26:35]SAM_PROTO_SignData done [10:26:35]FM_MakeSignedData done [10:26:35]CreateOFDProtocolMessage [10:26:35]wFMCommunicate request_size=4 [10:26:35]MH_SAM_APDU [10:26:35]CAPDU: 80 11 00 00 [10:26:35]Write to MH i2c: E2 08 00 FC 0F 80 11 00 00 00 00 00 00 85 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:35]Read from MH i2c: E2 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 17 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 17 00 FC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 D8 [10:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [10:26:35]wFMCommunicate OK [10:26:35]CreateOFDProtocolMessage done [10:26:35]OFDSenderStorePacket 4246 [10:26:35]StoreOFDPacket docnum=4246 [10:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 98 01 00 00 0D 53 90 01 07 45 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DE 8E 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 96 10 00 00 35 04 06 00 0F 8D 7C F0 DE 5A D6 07 E2 C4 20 CC 57 F5 [10:26:35]CheckFolder [10:26:35]dirname=/storage/ofd_packets [10:26:35]CheckFolder done [10:26:35]ProducePacketName [10:26:35]name=ofd_packets/00004246 [10:26:35]NVStorageSaveData ofd_packets/00004246 [10:26:35]File name is /storage/ofd_packets/00004246 [10:26:35]Write 438 bytes [10:26:35]NVStorageSaveData done [10:26:35]OFDSenderStorePacket done [10:26:35]KKMCreateOFDPacket done [10:26:35]NVStorageSaveData kkm_last_timestamp [10:26:35]File name is /storage/kkm_last_timestamp [10:26:35]Write 4 bytes [10:26:35]NVStorageSaveData done [10:26:35]ExternCall_PrintAddStr [10:26:35]wPrintStart [10:26:35]Write to MH i2c: 01 00 00 FD 0F 0C [10:26:35]OFD Sender: Processing packet 4246 [packets to send 2, broken 1] [10:26:35]ProducePacketName [10:26:35]name=ofd_packets/00004246 [10:26:35]OFD Sender: To server: pG, [10:26:35]CommunicateWithHost lk.salyk.kg:30040 [10:26:35]ConnectInit lk.salyk.kg [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: 01 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: 01 07 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: 01 07 00 FD 0F 00 00 00 00 00 FF 0F 21 [10:26:35]RasterBufferAndPrint [10:26:35]line Счет N : (3)4498 [10:26:35]line ИНН: 02508201610067 [10:26:35]line Контрольно-Кассовый Чек [10:26:35]line ПРОДАЖА [10:26:35]line Товар: 46230614 [10:26:35]line Сигареты Richmond Red Edition [10:26:35]line 1.000 * 150.00 [10:26:35]line = 150.00 [10:26:35]line НДС 12% НСП 1% [10:26:35]line > о реализуемом товаре [10:26:35]line Товар: 2000034250011 [10:26:35]line Горячий шоколад (GABB trade) [10:26:35]line 1.000 * 110.00 [10:26:35]line = 110.00 [10:26:35]line НДС 12% НСП 1% [10:26:35]line > о реализуемом товаре [10:26:35]line ИТОГО: 260.00 [10:26:35]line НСП 1% : 2.30 [10:26:35]line НДС 12% : 27.61 [10:26:35]line Наличными: 0.00 [10:26:35]line Безнал.: 260.00 [10:26:35]line Место: АЗС № 116 "Партнер Нефть" [10:26:35]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [10:26:35]line СНО: Общий режим [10:26:35]line Чек 21 06.06.2024 10:26 [10:26:35]line Смена: 85 ФФД: 1.0 [10:26:35]line ЗНМ: 0300000233 [10:26:35]line РНМ: 0000000000145775 [10:26:35]line Версия ККМ: v1.0 [10:26:35]line Платежная система: О! деньги [10:26:35]line ФМ: 0000000000959360 [10:26:35]line ФД: 4246 [10:26:35]line ФПД: 17100360965722 [10:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T102638&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4246&fm=17100360965722&tin=02508201610067®Number=0000000000145775&sum=26000 [10:26:35]line 0 [10:26:35]written 0, free lines is 4095 [10:26:35]Connected sock=10 [10:26:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 98 01 00 00 0D 53 90 01 07 45 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DE 8E 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 96 10 00 00 35 04 06 00 0F 8D 7C F0 DE 5A D6 07 E2 C4 20 CC 57 F5 [10:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 1F 80 47 00 A2 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 96 10 00 00 F4 03 04 00 DE 3A 61 66 B6 04 01 00 00 06 EA 1B 5E 3F 84 52 D6 [10:26:36]CommunicateWithHost err = 0 [10:26:36]CheckOFDResponse [10:26:36]1017 (14) - 77093643461234 [10:26:36]1041 (16) - 0000000000959360 [10:26:36]1040 (4) - 4246 [10:26:36]1012 (4) - 06.06.2024 04:28 [10:26:36]1206 (1) - 0 [10:26:36]OFD Sender: Remove packet 4246 [10:26:36]ProducePacketName [10:26:36]name=ofd_packets/00004246 [10:26:36]NVStorageDeleteData [10:26:36]Write to MH i2c: 01 00 00 2F 10 3F [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: 01 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: 01 07 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: 01 07 00 2F 10 00 00 00 00 00 F9 0B 4A [10:26:36]RasterBufferAndPrint [10:26:36]line [10:26:36]line [10:26:36]line [10:26:36]line [10:26:36]line [10:26:36]written 0, free lines is 3069 [10:26:36]MH_Cut [10:26:36]Write to MH i2c: D1 01 00 36 10 01 18 [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: D1 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: D1 01 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: D1 01 00 36 10 00 17 [10:26:36]Write to MH i2c: 01 00 00 37 10 47 [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]OFD Sender: No OFD packet to send [10:26:37]*** Cut start [10:26:37]*** Partial cut [10:26:37]*** CUTSNS_PIN = 1 [10:26:37]*** CUTSNS_PIN = 0 [10:26:37]*** Brake cut motor [10:26:38]Read from MH i2c: 01 [10:26:38]MH_I2C_Read... [10:26:38]*** Stop cut motor [10:26:38]*** Cut end [10:26:38]Read from MH i2c: 01 07 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 FF 0F 5C [10:26:38]process_action close_receipt done [10:26:38]requested_data is exist [10:26:38]produce_requested_data [10:26:38]requested_item fm.sn is exist - process it [10:26:38]wFMCommunicate request_size=4 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 11 00 00 [10:26:38]Write to MH i2c: E2 08 00 38 10 80 11 00 00 00 00 00 00 C2 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 17 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 17 00 38 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 15 [10:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [10:26:38]wFMCommunicate OK [10:26:38]requested_item fd.num is exist - process it [10:26:38]SAM_PROTO_GetFieldsCounters [10:26:38]wFMCommunicate request_size=4 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 13 00 00 [10:26:38]Write to MH i2c: E2 08 00 39 10 80 13 00 00 00 00 00 00 C5 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 62 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 62 00 39 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 96 10 00 00 0E 04 04 00 55 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 24 [10:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 96 10 00 00 0E 04 04 00 55 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 [10:26:38]wFMCommunicate OK [10:26:38]SAM_PROTO_GetFieldsCounters done [10:26:38]requested_item shift.num is exist - process it [10:26:38]requested_item shift.opened is exist - process it [10:26:38]req_shift_opened [10:26:38]FM_GetShiftState [10:26:38]SAM_PROTO_GetShiftState [10:26:38]wFMCommunicate request_size=4 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 13 01 00 [10:26:38]Write to MH i2c: E2 08 00 3A 10 80 13 01 00 00 00 00 00 C7 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:38]Read from MH i2c: E2 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 0E 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: E2 0E 00 3A 10 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 80 [10:26:38]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [10:26:38]wFMCommunicate OK [10:26:38]SAM_PROTO_GetShiftState done [10:26:38]FM_GetShiftState done [10:26:38]req_shift_opened done [10:26:38]requested_item shift.open_date is exist - process it [10:26:38]req_shift_open_date [10:26:38]req_shift_open_date done [10:26:38]produce_requested_data done [10:26:38]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4246,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [10:26:38]process_action_free close_receipt [10:26:38]json_value_free [10:26:38]json_value_free done [10:26:38]process_json_proto returns [10:26:38]Send response to host [10:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4246,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [10:26:38]free response buf [10:26:38]execute_script done [10:26:38]execute_script returns [10:26:38]free content buf [10:26:38]Sock 9.Close socket [10:26:38]Sock 9.Thread stoped [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [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:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:51]accept exits with 8 [10:41:51]New connection [10:41:51]New thread 3066772836 created [10:41:51]Thread 3066629476 joined [10:41:51]Waiting for new connection... [10:41:51] Sock 8.Parse request [10:41:51]Sock 8.Check first char [10:41:51]Sock 8.First char is OK [10:41:51]request: POST /json_proto HTTP/1.0 [10:41:51]Method: POST [10:41:51]URL: /json_proto [10:41:51]Method is POST - this is cgi request [10:41:51]url: /json_proto [10:41:51]query_string will be loaded in cgi processing [10:41:51]execute_cgi json_proto POST (null) [10:41:51]execute_cgi path=json_proto method=POST [10:41:51]POST find Content-Length [10:41:51]Host: 172.17.56.68:8080 [10:41:51]Content-Length: 619 [10:41:51]Content-Type: application/json [10:41:51] [10:41:51]POST finish read [10:41:51]Found Content-Length = 619 [10:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4499", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:51]execute_script... [10:41: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 : (3)4499", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:51]POST & json_proto [10:41:51]process_json_proto [10:41:51]json parsed OK: [10:41:51]protocol is kg_v1.0 [10:41:51]action value=close_receipt [10:41:51]process_action close_receipt [10:41:51]cmd_close_receipt [10:41:51]MH_GetDate [10:41:51]Write to MH i2c: F0 00 00 3B 10 3A [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: F0 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: F0 09 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: F0 09 00 3B 10 00 74 92 61 66 3A 8F 60 66 9F [10:41:51]GetLastDocTimeStamp 1717669598 [10:41:51]current date 1717670516 [10:41:51]FM_GetShiftState [10:41:51]SAM_PROTO_GetShiftState [10:41:51]wFMCommunicate request_size=4 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 13 01 00 [10:41:51]Write to MH i2c: E2 08 00 3C 10 80 13 01 00 00 00 00 00 C9 [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 0E 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 0E 00 3C 10 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 82 [10:41:51]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [10:41:51]wFMCommunicate OK [10:41:51]SAM_PROTO_GetShiftState done [10:41:51]FM_GetShiftState done [10:41:51]opened in 1717632745 [10:41:51]opened+sec_in_day 1717719145 [10:41:51]quantity*price = 14000 [10:41:51]sum+1 = 14001 [10:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 22 06.06.2024 10:41 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4247 ФПД: 14301383157488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T104156&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4247&fm=14301383157488&tin=02508201610067®Number=0000000000145775&sum=14000 0 [10:41:52]StoreToDocumentArchive [10:41:52]shift 85 fd 4247 [10:41:52]save to /storage/0085/doc_00004247 [10:41:52]save last doc name /storage/0085/doc_00004247 to /storage/kkm_last_doc_name [10:41:52]save OK [10:41:52]Clear old archive folders... [10:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:41:52]tlvbuf is 019C08D0 [10:41:52]SAM_PROTO_ClearQueue [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 09 00 00 [10:41:52]Write to MH i2c: E2 08 00 49 10 80 09 00 00 00 00 00 00 CB [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 49 10 00 90 00 CD [10:41:52]RAPDU: 90 00 [10:41:52]wFMCommunicate OK [10:41:52]SAM_PROTO_ClearQueue done [10:41:52]KKMCreateOFDPacket [10:41:52]OFDProtocolAddRootSTLVToBuf [10:41:52]FM_MakeSignedData [10:41:52]FM_MakeSignedData [10:41:52]SAM_PROTO_SignData [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 0D 01 02 [10:41:52]Write to MH i2c: E2 08 00 4A 10 80 0D 01 02 00 00 00 00 D3 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [10:41:52]RAPDU: 90 00 [10:41:52]wFMCommunicate OK [10:41:52]wFMCommunicate request_size=255 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 92 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 [10:41:52]Write to MH i2c: E2 02 01 4B 10 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 92 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 00 00 F0 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [10:41:52]RAPDU: 90 00 [10:41:52]wFMCommunicate OK [10:41:52]wFMCommunicate request_size=32 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 33 36 30 10 04 04 00 97 10 00 00 35 04 06 00 0D 01 CC DC E6 F0 [10:41:52]Write to MH i2c: E2 23 00 4C 10 80 0D 02 02 1B 00 30 30 30 39 35 39 33 36 30 10 04 04 00 97 10 00 00 35 04 06 00 0D 01 CC DC E6 F0 00 00 66 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [10:41:52]RAPDU: 90 00 [10:41:52]wFMCommunicate OK [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 0D 03 02 [10:41:52]Write to MH i2c: E2 08 00 4D 10 80 0D 03 02 00 00 00 00 D8 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:53]Read from MH i2c: E2 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 0B 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 0B 00 4D 10 00 C4 C0 28 66 BA 06 AB B3 90 00 09 [10:41:53]RAPDU: C4 C0 28 66 BA 06 AB B3 90 00 [10:41:53]wFMCommunicate OK [10:41:53]SAM_PROTO_SignData done [10:41:53]FM_MakeSignedData done [10:41:53]CreateOFDProtocolMessage [10:41:53]wFMCommunicate request_size=4 [10:41:53]MH_SAM_APDU [10:41:53]CAPDU: 80 11 00 00 [10:41:53]Write to MH i2c: E2 08 00 4E 10 80 11 00 00 00 00 00 00 D8 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:53]Read from MH i2c: E2 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 17 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: E2 17 00 4E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 2B [10:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [10:41:53]wFMCommunicate OK [10:41:53]CreateOFDProtocolMessage done [10:41:53]OFDSenderStorePacket 4247 [10:41:53]StoreOFDPacket docnum=4247 [10:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 25 01 00 00 9F 38 1D 01 B3 75 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 92 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 97 10 00 00 35 04 06 00 0D 01 CC DC E6 F0 C4 C0 28 66 BA 06 AB B3 [10:41:53]CheckFolder [10:41:53]dirname=/storage/ofd_packets [10:41:53]CheckFolder done [10:41:53]ProducePacketName [10:41:53]name=ofd_packets/00004247 [10:41:53]NVStorageSaveData ofd_packets/00004247 [10:41:53]File name is /storage/ofd_packets/00004247 [10:41:53]Write 323 bytes [10:41:53]NVStorageSaveData done [10:41:53]OFDSenderStorePacket done [10:41:53]KKMCreateOFDPacket done [10:41:53]NVStorageSaveData kkm_last_timestamp [10:41:53]File name is /storage/kkm_last_timestamp [10:41:53]Write 4 bytes [10:41:53]NVStorageSaveData done [10:41:53]ExternCall_PrintAddStr [10:41:53]wPrintStart [10:41:53]Write to MH i2c: 01 00 00 4F 10 5F [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 07 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 07 00 4F 10 00 00 00 00 00 FF 0F 74 [10:41:53]RasterBufferAndPrint [10:41:53]line Счет N : (3)4499 [10:41:53]line ИНН: 02508201610067 [10:41:53]line Контрольно-Кассовый Чек [10:41:53]line ПРОДАЖА [10:41:53]line Товар: 48747059 [10:41:53]line Сигареты Winston Legend Blue [10:41:53]line 1.000 * 140.00 [10:41:53]line = 140.00 [10:41:53]line НДС 12% НСП 1% [10:41:53]line > о реализуемом товаре [10:41:53]line ИТОГО: 140.00 [10:41:53]line НСП 1% : 1.24 [10:41:53]line НДС 12% : 14.87 [10:41:53]line Наличными: 140.00 [10:41:53]line Безнал.: 0.00 [10:41:53]line Место: АЗС № 116 "Партнер Нефть" [10:41:53]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [10:41:53]line СНО: Общий режим [10:41:53]line Чек 22 06.06.2024 10:41 [10:41:53]line Смена: 85 ФФД: 1.0 [10:41:53]line ЗНМ: 0300000233 [10:41:53]line РНМ: 0000000000145775 [10:41:53]line Версия ККМ: v1.0 [10:41:53]line ФМ: 0000000000959360 [10:41:53]line ФД: 4247 [10:41:53]line ФПД: 14301383157488 [10:41:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T104156&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4247&fm=14301383157488&tin=02508201610067®Number=0000000000145775&sum=14000 [10:41:53]OFD Sender: Processing packet 4247 [packets to send 2, broken 1] [10:41:53]ProducePacketName [10:41:53]name=ofd_packets/00004247 [10:41:53]OFD Sender: To server: pG, [10:41:53]CommunicateWithHost lk.salyk.kg:30040 [10:41:53]ConnectInit lk.salyk.kg [10:41:53]line 0 [10:41:53]written 0, free lines is 4095 [10:41:53]Connected sock=10 [10:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 25 01 00 00 9F 38 1D 01 B3 75 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 92 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 97 10 00 00 35 04 06 00 0D 01 CC DC E6 F0 C4 C0 28 66 BA 06 AB B3 [10:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 0C 03 47 00 06 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 39 35 39 33 36 30 10 04 04 00 97 10 00 00 F4 03 04 00 73 3E 61 66 B6 04 01 00 00 63 82 9F C9 16 78 20 9F [10:41:53]CommunicateWithHost err = 0 [10:41:53]CheckOFDResponse [10:41:53]1017 (14) - 77093643461234 [10:41:53]1041 (16) - 0000000000959360 [10:41:53]1040 (4) - 4247 [10:41:53]1012 (4) - 06.06.2024 04:43 [10:41:53]1206 (1) - 0 [10:41:53]OFD Sender: Remove packet 4247 [10:41:53]ProducePacketName [10:41:53]name=ofd_packets/00004247 [10:41:53]NVStorageDeleteData [10:41:53]Write to MH i2c: 01 00 00 78 10 88 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 07 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 AA 0C 45 [10:41:53]RasterBufferAndPrint [10:41:53]line [10:41:53]line [10:41:53]line [10:41:53]line [10:41:53]line [10:41:53]written 0, free lines is 3246 [10:41:53]MH_Cut [10:41:53]Write to MH i2c: D1 01 00 7F 10 01 61 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: D1 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: D1 01 00 [10:41:53]MH_I2C_Read... [10:41:53]Read from MH i2c: D1 01 00 7F 10 00 60 [10:41:53]Write to MH i2c: 01 00 00 80 10 90 [10:41:53]Write i2c OK [10:41:53]MH_I2C_Read... [10:41:54]OFD Sender: No OFD packet to send [10:41:54]*** Cut start [10:41:54]*** Partial cut [10:41:54]*** CUTSNS_PIN = 1 [10:41:54]*** CUTSNS_PIN = 0 [10:41:55]*** Brake cut motor [10:41:55]Read from MH i2c: 01 [10:41:55]MH_I2C_Read... [10:41:55]*** Stop cut motor [10:41:55]*** Cut end [10:41:55]Read from MH i2c: 01 07 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: 01 07 00 80 10 00 00 00 00 00 FF 0F A5 [10:41:55]process_action close_receipt done [10:41:55]requested_data is exist [10:41:55]produce_requested_data [10:41:55]requested_item fm.sn is exist - process it [10:41:55]wFMCommunicate request_size=4 [10:41:55]MH_SAM_APDU [10:41:55]CAPDU: 80 11 00 00 [10:41:55]Write to MH i2c: E2 08 00 81 10 80 11 00 00 00 00 00 00 0B [10:41:55]Write i2c OK [10:41:55]MH_I2C_Read... [10:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:55]Read from MH i2c: E2 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 17 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 17 00 81 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 5E [10:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [10:41:55]wFMCommunicate OK [10:41:55]requested_item fd.num is exist - process it [10:41:55]SAM_PROTO_GetFieldsCounters [10:41:55]wFMCommunicate request_size=4 [10:41:55]MH_SAM_APDU [10:41:55]CAPDU: 80 13 00 00 [10:41:55]Write to MH i2c: E2 08 00 82 10 80 13 00 00 00 00 00 00 0E [10:41:55]Write i2c OK [10:41:55]MH_I2C_Read... [10:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:55]Read from MH i2c: E2 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 62 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 62 00 82 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 97 10 00 00 0E 04 04 00 55 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 71 [10:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 97 10 00 00 0E 04 04 00 55 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 [10:41:55]wFMCommunicate OK [10:41:55]SAM_PROTO_GetFieldsCounters done [10:41:55]requested_item shift.num is exist - process it [10:41:55]requested_item shift.opened is exist - process it [10:41:55]req_shift_opened [10:41:55]FM_GetShiftState [10:41:55]SAM_PROTO_GetShiftState [10:41:55]wFMCommunicate request_size=4 [10:41:55]MH_SAM_APDU [10:41:55]CAPDU: 80 13 01 00 [10:41:55]Write to MH i2c: E2 08 00 83 10 80 13 01 00 00 00 00 00 10 [10:41:55]Write i2c OK [10:41:55]MH_I2C_Read... [10:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:55]Read from MH i2c: E2 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 0E 00 [10:41:55]MH_I2C_Read... [10:41:55]Read from MH i2c: E2 0E 00 83 10 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 C9 [10:41:55]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [10:41:55]wFMCommunicate OK [10:41:55]SAM_PROTO_GetShiftState done [10:41:55]FM_GetShiftState done [10:41:55]req_shift_opened done [10:41:55]requested_item shift.open_date is exist - process it [10:41:55]req_shift_open_date [10:41:55]req_shift_open_date done [10:41:55]produce_requested_data done [10:41:55]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4247,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [10:41:55]process_action_free close_receipt [10:41:55]json_value_free [10:41:55]json_value_free done [10:41:55]process_json_proto returns [10:41:55]Send response to host [10:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4247,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [10:41:55]free response buf [10:41:55]execute_script done [10:41:55]execute_script returns [10:41:55]free content buf [10:41:55]Sock 8.Close socket [10:41:55]Sock 8.Thread stoped [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]accept exits with 9 [10:56:24]New connection [10:56:24]New thread 3066629476 created [10:56:24]Thread 3066772836 joined [10:56:24]Waiting for new connection... [10:56:24] Sock 9.Parse request [10:56:24]Sock 9.Check first char [10:56:24]Sock 9.First char is OK [10:56:24]request: POST /json_proto HTTP/1.0 [10:56:24]Method: POST [10:56:24]URL: /json_proto [10:56:24]Method is POST - this is cgi request [10:56:24]url: /json_proto [10:56:24]query_string will be loaded in cgi processing [10:56:24]execute_cgi json_proto POST (null) [10:56:24]execute_cgi path=json_proto method=POST [10:56:24]POST find Content-Length [10:56:24]Host: 172.17.56.68:8080 [10:56:24]Content-Length: 743 [10:56:24]Content-Type: application/json [10:56:24] [10:56:24]POST finish read [10:56:24]Found Content-Length = 743 [10:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4500", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:24]execute_script... [10:56: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 : (3)4500", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:24]POST & json_proto [10:56:24]process_json_proto [10:56:24]json parsed OK: [10:56:24]protocol is kg_v1.0 [10:56:24]action value=close_receipt [10:56:24]process_action close_receipt [10:56:24]cmd_close_receipt [10:56:24]MH_GetDate [10:56:24]Write to MH i2c: F0 00 00 84 10 83 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: F0 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: F0 09 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: F0 09 00 84 10 00 DC 95 61 66 3A 8F 60 66 53 [10:56:24]GetLastDocTimeStamp 1717670516 [10:56:24]current date 1717671388 [10:56:24]FM_GetShiftState [10:56:24]SAM_PROTO_GetShiftState [10:56:24]wFMCommunicate request_size=4 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 13 01 00 [10:56:24]Write to MH i2c: E2 08 00 85 10 80 13 01 00 00 00 00 00 12 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 0E 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 0E 00 85 10 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 CB [10:56:24]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [10:56:24]wFMCommunicate OK [10:56:24]SAM_PROTO_GetShiftState done [10:56:24]FM_GetShiftState done [10:56:24]opened in 1717632745 [10:56:24]opened+sec_in_day 1717719145 [10:56:24]quantity*price = 6000 [10:56:24]sum+1 = 6001 [10:56:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 23 06.06.2024 10:56 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4248 ФПД: 179649985158091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T105629&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4248&fm=179649985158091&tin=02508201610067®Number=0000000000145775&sum=6000 0 [10:56:25]StoreToDocumentArchive [10:56:25]shift 85 fd 4248 [10:56:25]save to /storage/0085/doc_00004248 [10:56:25]save last doc name /storage/0085/doc_00004248 to /storage/kkm_last_doc_name [10:56:25]save OK [10:56:25]Clear old archive folders... [10:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=312 [10:56:25]tlvbuf is 019AC970 [10:56:25]SAM_PROTO_ClearQueue [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 09 00 00 [10:56:25]Write to MH i2c: E2 08 00 92 10 80 09 00 00 00 00 00 00 14 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [10:56:25]RAPDU: 90 00 [10:56:25]wFMCommunicate OK [10:56:25]SAM_PROTO_ClearQueue done [10:56:25]KKMCreateOFDPacket [10:56:25]OFDProtocolAddRootSTLVToBuf [10:56:25]FM_MakeSignedData [10:56:25]FM_MakeSignedData [10:56:25]SAM_PROTO_SignData [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 0D 01 02 [10:56:25]Write to MH i2c: E2 08 00 93 10 80 0D 01 02 00 00 00 00 1C [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 93 10 00 90 00 17 [10:56:25]RAPDU: 90 00 [10:56:25]wFMCommunicate OK [10:56:25]wFMCommunicate request_size=255 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 DD 95 61 66 0E 04 04 00 55 [10:56:25]Write to MH i2c: E2 02 01 94 10 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 DD 95 61 66 0E 04 04 00 55 00 00 FE [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 94 10 00 90 00 18 [10:56:25]RAPDU: 90 00 [10:56:25]wFMCommunicate OK [10:56:25]wFMCommunicate request_size=71 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 0D 02 02 42 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 98 10 00 00 35 04 06 00 A3 64 05 8C 9B CB [10:56:25]Write to MH i2c: E2 4A 00 95 10 80 0D 02 02 42 00 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 98 10 00 00 35 04 06 00 A3 64 05 8C 9B CB 00 00 E2 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [10:56:25]RAPDU: 90 00 [10:56:25]wFMCommunicate OK [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 0D 03 02 [10:56:25]Write to MH i2c: E2 08 00 96 10 80 0D 03 02 00 00 00 00 21 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 0B 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 0B 00 96 10 00 9D B9 F5 72 15 83 F1 D6 90 00 3E [10:56:25]RAPDU: 9D B9 F5 72 15 83 F1 D6 90 00 [10:56:25]wFMCommunicate OK [10:56:25]SAM_PROTO_SignData done [10:56:25]FM_MakeSignedData done [10:56:25]CreateOFDProtocolMessage [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 11 00 00 [10:56:25]Write to MH i2c: E2 08 00 97 10 80 11 00 00 00 00 00 00 21 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 97 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 74 [10:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [10:56:25]wFMCommunicate OK [10:56:25]CreateOFDProtocolMessage done [10:56:25]OFDSenderStorePacket 4248 [10:56:25]StoreOFDPacket docnum=4248 [10:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4C 01 00 00 53 70 44 01 67 42 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 DD 95 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 98 10 00 00 35 04 06 00 A3 64 05 8C 9B CB 9D B9 F5 72 15 83 F1 D6 [10:56:25]CheckFolder [10:56:25]dirname=/storage/ofd_packets [10:56:25]CheckFolder done [10:56:25]ProducePacketName [10:56:25]name=ofd_packets/00004248 [10:56:25]NVStorageSaveData ofd_packets/00004248 [10:56:25]File name is /storage/ofd_packets/00004248 [10:56:25]Write 362 bytes [10:56:25]NVStorageSaveData done [10:56:25]OFDSenderStorePacket done [10:56:25]KKMCreateOFDPacket done [10:56:25]NVStorageSaveData kkm_last_timestamp [10:56:25]File name is /storage/kkm_last_timestamp [10:56:25]Write 4 bytes [10:56:25]NVStorageSaveData done [10:56:25]ExternCall_PrintAddStr [10:56:25]wPrintStart [10:56:25]Write to MH i2c: 01 00 00 98 10 A8 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 98 10 00 00 00 00 00 FF 0F BD [10:56:25]RasterBufferAndPrint [10:56:25]line Счет N : (3)4500 [10:56:25]line ИНН: 02508201610067 [10:56:25]line Контрольно-Кассовый Чек [10:56:25]line ПРОДАЖА [10:56:25]line Товар: 4870202521186 [10:56:25]line Чай холодный MAXI черный со вкусом клубн [10:56:25]line 1.000 * 60.00 [10:56:25]line = 60.00 [10:56:25]line НДС 12% НСП 1% [10:56:25]line > о реализуемом товаре [10:56:25]line ИТОГО: 60.00 [10:56:25]line НСП 1% : 0.53 [10:56:25]line НДС 12% : 6.37 [10:56:25]line Наличными: 60.00 [10:56:25]line Безнал.: 0.00 [10:56:25]line Место: АЗС № 116 "Партнер Нефть" [10:56:25]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [10:56:25]line СНО: Общий режим [10:56:25]line Чек 23 06.06.2024 10:56 [10:56:25]line Смена: 85 ФФД: 1.0 [10:56:25]line ЗНМ: 0300000233 [10:56:25]line РНМ: 0000000000145775 [10:56:25]line Версия ККМ: v1.0 [10:56:25]line ФМ: 0000000000959360 [10:56:25]line ФД: 4248 [10:56:25]line ФПД: 179649985158091 [10:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T105629&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4248&fm=179649985158091&tin=02508201610067®Number=0000000000145775&sum=6000 [10:56:26]line 0 [10:56:26]OFD Sender: Processing packet 4248 [packets to send 2, broken 1] [10:56:26]ProducePacketName [10:56:26]name=ofd_packets/00004248 [10:56:26]OFD Sender: To server: pG, [10:56:26]CommunicateWithHost lk.salyk.kg:30040 [10:56:26]ConnectInit lk.salyk.kg [10:56:26]written 0, free lines is 4095 [10:56:26]Connected sock=10 [10:56:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4C 01 00 00 53 70 44 01 67 42 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 DD 95 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 98 10 00 00 35 04 06 00 A3 64 05 8C 9B CB 9D B9 F5 72 15 83 F1 D6 [10:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 73 79 47 00 13 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 98 10 00 00 F4 03 04 00 DC 41 61 66 B6 04 01 00 00 C4 C0 E4 46 78 60 B1 C1 [10:56:26]CommunicateWithHost err = 0 [10:56:26]CheckOFDResponse [10:56:26]1017 (14) - 77093643461234 [10:56:26]1041 (16) - 0000000000959360 [10:56:26]1040 (4) - 4248 [10:56:26]1012 (4) - 06.06.2024 04:58 [10:56:26]1206 (1) - 0 [10:56:26]OFD Sender: Remove packet 4248 [10:56:26]ProducePacketName [10:56:26]name=ofd_packets/00004248 [10:56:26]NVStorageDeleteData [10:56:26]Write to MH i2c: 01 00 00 C1 10 D1 [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: 01 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: 01 07 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: 01 07 00 C1 10 00 00 00 00 00 B5 0C 99 [10:56:26]RasterBufferAndPrint [10:56:26]line [10:56:26]line [10:56:26]line [10:56:26]line [10:56:26]line [10:56:26]written 0, free lines is 3258 [10:56:26]MH_Cut [10:56:26]Write to MH i2c: D1 01 00 C8 10 01 AA [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: D1 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: D1 01 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: D1 01 00 C8 10 00 A9 [10:56:26]Write to MH i2c: 01 00 00 C9 10 D9 [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:27]OFD Sender: No OFD packet to send [10:56:27]*** Cut start [10:56:27]*** Partial cut [10:56:27]*** CUTSNS_PIN = 1 [10:56:27]*** CUTSNS_PIN = 0 [10:56:27]*** Brake cut motor [10:56:28]Read from MH i2c: 01 [10:56:28]MH_I2C_Read... [10:56:28]*** Stop cut motor [10:56:28]*** Cut end [10:56:28]Read from MH i2c: 01 07 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 FF 0F EE [10:56:28]process_action close_receipt done [10:56:28]requested_data is exist [10:56:28]produce_requested_data [10:56:28]requested_item fm.sn is exist - process it [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 11 00 00 [10:56:28]Write to MH i2c: E2 08 00 CA 10 80 11 00 00 00 00 00 00 54 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 17 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 17 00 CA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 A7 [10:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [10:56:28]wFMCommunicate OK [10:56:28]requested_item fd.num is exist - process it [10:56:28]SAM_PROTO_GetFieldsCounters [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 13 00 00 [10:56:28]Write to MH i2c: E2 08 00 CB 10 80 13 00 00 00 00 00 00 57 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 62 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 62 00 CB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 98 10 00 00 0E 04 04 00 55 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 BE [10:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 98 10 00 00 0E 04 04 00 55 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 [10:56:28]wFMCommunicate OK [10:56:28]SAM_PROTO_GetFieldsCounters done [10:56:28]requested_item shift.num is exist - process it [10:56:28]requested_item shift.opened is exist - process it [10:56:28]req_shift_opened [10:56:28]FM_GetShiftState [10:56:28]SAM_PROTO_GetShiftState [10:56:28]wFMCommunicate request_size=4 [10:56:28]MH_SAM_APDU [10:56:28]CAPDU: 80 13 01 00 [10:56:28]Write to MH i2c: E2 08 00 CC 10 80 13 01 00 00 00 00 00 59 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:28]Read from MH i2c: E2 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 0E 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: E2 0E 00 CC 10 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 12 [10:56:28]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [10:56:28]wFMCommunicate OK [10:56:28]SAM_PROTO_GetShiftState done [10:56:28]FM_GetShiftState done [10:56:28]req_shift_opened done [10:56:28]requested_item shift.open_date is exist - process it [10:56:28]req_shift_open_date [10:56:28]req_shift_open_date done [10:56:28]produce_requested_data done [10:56:28]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4248,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [10:56:28]process_action_free close_receipt [10:56:28]json_value_free [10:56:28]json_value_free done [10:56:28]process_json_proto returns [10:56:28]Send response to host [10:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4248,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [10:56:28]free response buf [10:56:28]execute_script done [10:56:28]execute_script returns [10:56:28]free content buf [10:56:28]Sock 9.Close socket [10:56:28]Sock 9.Thread stoped [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:30]accept exits with 8 [11:17:30]New connection [11:17:30]New thread 3066772836 created [11:17:30]Thread 3066629476 joined [11:17:30]Waiting for new connection... [11:17:30] Sock 8.Parse request [11:17:30]Sock 8.Check first char [11:17:30]Sock 8.First char is OK [11:17:30]request: POST /json_proto HTTP/1.0 [11:17:30]Method: POST [11:17:30]URL: /json_proto [11:17:30]Method is POST - this is cgi request [11:17:30]url: /json_proto [11:17:30]query_string will be loaded in cgi processing [11:17:30]execute_cgi json_proto POST (null) [11:17:30]execute_cgi path=json_proto method=POST [11:17:30]POST find Content-Length [11:17:30]Host: 172.17.56.68:8080 [11:17:30]Content-Length: 801 [11:17:30]Content-Type: application/json [11:17:30] [11:17:30]POST finish read [11:17:30]Found Content-Length = 801 [11:17:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4501", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:30]execute_script... [11:17: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 : (3)4501", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:30]POST & json_proto [11:17:30]process_json_proto [11:17:30]json parsed OK: [11:17:30]protocol is kg_v1.0 [11:17:30]action value=close_receipt [11:17:30]process_action close_receipt [11:17:30]cmd_close_receipt [11:17:30]MH_GetDate [11:17:30]Write to MH i2c: F0 00 00 CD 10 CC [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: F0 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: F0 09 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: F0 09 00 CD 10 00 CE 9A 61 66 3A 8F 60 66 93 [11:17:30]GetLastDocTimeStamp 1717671389 [11:17:30]current date 1717672654 [11:17:30]FM_GetShiftState [11:17:30]SAM_PROTO_GetShiftState [11:17:30]wFMCommunicate request_size=4 [11:17:30]MH_SAM_APDU [11:17:30]CAPDU: 80 13 01 00 [11:17:30]Write to MH i2c: E2 08 00 CE 10 80 13 01 00 00 00 00 00 5B [11:17:30]Write i2c OK [11:17:30]MH_I2C_Read... [11:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:30]Read from MH i2c: E2 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 0E 00 [11:17:30]MH_I2C_Read... [11:17:30]Read from MH i2c: E2 0E 00 CE 10 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 14 [11:17:30]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [11:17:30]wFMCommunicate OK [11:17:30]SAM_PROTO_GetShiftState done [11:17:30]FM_GetShiftState done [11:17:30]opened in 1717632745 [11:17:30]opened+sec_in_day 1717719145 [11:17:30]quantity*price = 5000 [11:17:30]sum+1 = 5001 [11:17:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 24 06.06.2024 11:17 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: О! деньги ФМ: 0000000000959360 ФД: 4249 ФПД: 261518904203303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T111734&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4249&fm=261518904203303&tin=02508201610067®Number=0000000000145775&sum=5000 0 [11:17:31]StoreToDocumentArchive [11:17:31]shift 85 fd 4249 [11:17:31]save to /storage/0085/doc_00004249 [11:17:31]save last doc name /storage/0085/doc_00004249 to /storage/kkm_last_doc_name [11:17:31]save OK [11:17:31]Clear old archive folders... [11:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:17:31]tlvbuf is 019C0220 [11:17:31]SAM_PROTO_ClearQueue [11:17:31]wFMCommunicate request_size=4 [11:17:31]MH_SAM_APDU [11:17:31]CAPDU: 80 09 00 00 [11:17:31]Write to MH i2c: E2 08 00 DB 10 80 09 00 00 00 00 00 00 5D [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:31]Read from MH i2c: E2 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 03 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 03 00 DB 10 00 90 00 5F [11:17:31]RAPDU: 90 00 [11:17:31]wFMCommunicate OK [11:17:31]SAM_PROTO_ClearQueue done [11:17:31]KKMCreateOFDPacket [11:17:31]OFDProtocolAddRootSTLVToBuf [11:17:31]FM_MakeSignedData [11:17:31]FM_MakeSignedData [11:17:31]SAM_PROTO_SignData [11:17:31]wFMCommunicate request_size=4 [11:17:31]MH_SAM_APDU [11:17:31]CAPDU: 80 0D 01 02 [11:17:31]Write to MH i2c: E2 08 00 DC 10 80 0D 01 02 00 00 00 00 65 [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:31]Read from MH i2c: E2 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 03 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 03 00 DC 10 00 90 00 60 [11:17:31]RAPDU: 90 00 [11:17:31]wFMCommunicate OK [11:17:31]wFMCommunicate request_size=255 [11:17:31]MH_SAM_APDU [11:17:31]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CE 9A 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 [11:17:31]Write to MH i2c: E2 02 01 DD 10 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CE 9A 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 52 [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:31]Read from MH i2c: E2 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 03 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [11:17:31]RAPDU: 90 00 [11:17:31]wFMCommunicate OK [11:17:31]wFMCommunicate request_size=31 [11:17:31]MH_SAM_APDU [11:17:31]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 30 10 04 04 00 99 10 00 00 35 04 06 00 ED D9 9D 63 18 27 [11:17:31]Write to MH i2c: E2 22 00 DE 10 80 0D 02 02 1A 00 30 30 39 35 39 33 36 30 10 04 04 00 99 10 00 00 35 04 06 00 ED D9 9D 63 18 27 00 00 41 [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:31]Read from MH i2c: E2 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 03 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [11:17:31]RAPDU: 90 00 [11:17:31]wFMCommunicate OK [11:17:31]wFMCommunicate request_size=4 [11:17:31]MH_SAM_APDU [11:17:31]CAPDU: 80 0D 03 02 [11:17:31]Write to MH i2c: E2 08 00 DF 10 80 0D 03 02 00 00 00 00 6A [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:31]Read from MH i2c: E2 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 0B 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 0B 00 DF 10 00 42 3D 24 5B EB B4 CA 1C 90 00 EE [11:17:31]RAPDU: 42 3D 24 5B EB B4 CA 1C 90 00 [11:17:31]wFMCommunicate OK [11:17:31]SAM_PROTO_SignData done [11:17:31]FM_MakeSignedData done [11:17:31]CreateOFDProtocolMessage [11:17:31]wFMCommunicate request_size=4 [11:17:31]MH_SAM_APDU [11:17:31]CAPDU: 80 11 00 00 [11:17:31]Write to MH i2c: E2 08 00 E0 10 80 11 00 00 00 00 00 00 6A [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:31]Read from MH i2c: E2 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 17 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 17 00 E0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 BD [11:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [11:17:31]wFMCommunicate OK [11:17:31]CreateOFDProtocolMessage done [11:17:31]OFDSenderStorePacket 4249 [11:17:31]StoreOFDPacket docnum=4249 [11:17:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 24 01 00 00 EE 5A 1C 01 94 6C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CE 9A 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 99 10 00 00 35 04 06 00 ED D9 9D 63 18 27 42 3D 24 5B EB B4 CA 1C [11:17:31]CheckFolder [11:17:31]dirname=/storage/ofd_packets [11:17:31]CheckFolder done [11:17:31]ProducePacketName [11:17:31]name=ofd_packets/00004249 [11:17:31]NVStorageSaveData ofd_packets/00004249 [11:17:31]File name is /storage/ofd_packets/00004249 [11:17:31]Write 322 bytes [11:17:31]NVStorageSaveData done [11:17:31]OFDSenderStorePacket done [11:17:31]KKMCreateOFDPacket done [11:17:31]NVStorageSaveData kkm_last_timestamp [11:17:31]File name is /storage/kkm_last_timestamp [11:17:31]Write 4 bytes [11:17:31]NVStorageSaveData done [11:17:31]ExternCall_PrintAddStr [11:17:31]wPrintStart [11:17:31]Write to MH i2c: 01 00 00 E1 10 F1 [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: 01 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: 01 07 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: 01 07 00 E1 10 00 00 00 00 00 FF 0F 06 [11:17:31]RasterBufferAndPrint [11:17:31]line Счет N : (3)4501 [11:17:31]line ИНН: 02508201610067 [11:17:31]line Контрольно-Кассовый Чек [11:17:31]line ПРОДАЖА [11:17:31]line Товар: 4700000160051 [11:17:31]line Вода Ыссык Ата 1л [11:17:31]line 1.000 * 50.00 [11:17:31]line = 50.00 [11:17:31]line НДС 12% НСП 1% [11:17:31]line > о реализуемом товаре [11:17:31]line ИТОГО: 50.00 [11:17:31]line НСП 1% : 0.44 [11:17:31]line НДС 12% : 5.31 [11:17:31]line Наличными: 0.00 [11:17:31]line Безнал.: 50.00 [11:17:31]line Место: АЗС № 116 "Партнер Нефть" [11:17:31]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [11:17:31]line СНО: Общий режим [11:17:31]line Чек 24 06.06.2024 11:17 [11:17:31]line Смена: 85 ФФД: 1.0 [11:17:31]line ЗНМ: 0300000233 [11:17:31]line РНМ: 0000000000145775 [11:17:31]line Версия ККМ: v1.0 [11:17:31]line Платежная система: О! деньги [11:17:31]line ФМ: 0000000000959360 [11:17:31]line ФД: 4249 [11:17:31]line ФПД: 261518904203303 [11:17:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T111734&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4249&fm=261518904203303&tin=02508201610067®Number=0000000000145775&sum=5000 [11:17:32]line 0 [11:17:32]OFD Sender: Processing packet 4249 [packets to send 2, broken 1] [11:17:32]ProducePacketName [11:17:32]name=ofd_packets/00004249 [11:17:32]OFD Sender: To server: pG, [11:17:32]CommunicateWithHost lk.salyk.kg:30040 [11:17:32]ConnectInit lk.salyk.kg [11:17:32]written 0, free lines is 4095 [11:17:32]Connected sock=11 [11:17:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 24 01 00 00 EE 5A 1C 01 94 6C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CE 9A 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 99 10 00 00 35 04 06 00 ED D9 9D 63 18 27 42 3D 24 5B EB B4 CA 1C [11:17:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 9E 83 47 00 79 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 39 35 39 33 36 30 10 04 04 00 99 10 00 00 F4 03 04 00 CE 46 61 66 B6 04 01 00 00 7C 49 F2 47 5D C0 77 4E [11:17:32]CommunicateWithHost err = 0 [11:17:32]CheckOFDResponse [11:17:32]1017 (14) - 77093643461234 [11:17:32]1041 (16) - 0000000000959360 [11:17:32]1040 (4) - 4249 [11:17:32]1012 (4) - 06.06.2024 05:19 [11:17:32]1206 (1) - 0 [11:17:32]OFD Sender: Remove packet 4249 [11:17:32]ProducePacketName [11:17:32]name=ofd_packets/00004249 [11:17:32]NVStorageDeleteData [11:17:32]Write to MH i2c: 01 00 00 0B 11 1C [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: 01 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: 01 07 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: 01 07 00 0B 11 00 00 00 00 00 9A 0C C9 [11:17:32]RasterBufferAndPrint [11:17:32]line [11:17:32]line [11:17:32]line [11:17:32]line [11:17:32]line [11:17:32]written 0, free lines is 3232 [11:17:32]MH_Cut [11:17:32]Write to MH i2c: D1 01 00 12 11 01 F5 [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: D1 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: D1 01 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: D1 01 00 12 11 00 F4 [11:17:32]Write to MH i2c: 01 00 00 13 11 24 [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]OFD Sender: No OFD packet to send [11:17:33]*** Cut start [11:17:33]*** Partial cut [11:17:33]*** CUTSNS_PIN = 1 [11:17:33]*** CUTSNS_PIN = 0 [11:17:33]*** Brake cut motor [11:17:34]Read from MH i2c: 01 [11:17:34]MH_I2C_Read... [11:17:34]*** Stop cut motor [11:17:34]*** Cut end [11:17:34]Read from MH i2c: 01 07 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: 01 07 00 13 11 00 00 00 00 00 FF 0F 39 [11:17:34]process_action close_receipt done [11:17:34]requested_data is exist [11:17:34]produce_requested_data [11:17:34]requested_item fm.sn is exist - process it [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 11 00 00 [11:17:34]Write to MH i2c: E2 08 00 14 11 80 11 00 00 00 00 00 00 9F [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 17 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 17 00 14 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 F2 [11:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [11:17:34]wFMCommunicate OK [11:17:34]requested_item fd.num is exist - process it [11:17:34]SAM_PROTO_GetFieldsCounters [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 13 00 00 [11:17:34]Write to MH i2c: E2 08 00 15 11 80 13 00 00 00 00 00 00 A2 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 62 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 62 00 15 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 99 10 00 00 0E 04 04 00 55 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 0D [11:17:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 99 10 00 00 0E 04 04 00 55 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 [11:17:34]wFMCommunicate OK [11:17:34]SAM_PROTO_GetFieldsCounters done [11:17:34]requested_item shift.num is exist - process it [11:17:34]requested_item shift.opened is exist - process it [11:17:34]req_shift_opened [11:17:34]FM_GetShiftState [11:17:34]SAM_PROTO_GetShiftState [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 13 01 00 [11:17:34]Write to MH i2c: E2 08 00 16 11 80 13 01 00 00 00 00 00 A4 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0E 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0E 00 16 11 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 5D [11:17:34]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [11:17:34]wFMCommunicate OK [11:17:34]SAM_PROTO_GetShiftState done [11:17:34]FM_GetShiftState done [11:17:34]req_shift_opened done [11:17:34]requested_item shift.open_date is exist - process it [11:17:34]req_shift_open_date [11:17:34]req_shift_open_date done [11:17:34]produce_requested_data done [11:17:34]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4249,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [11:17:34]process_action_free close_receipt [11:17:34]json_value_free [11:17:34]json_value_free done [11:17:34]process_json_proto returns [11:17:34]Send response to host [11:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4249,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [11:17:34]free response buf [11:17:34]execute_script done [11:17:34]execute_script returns [11:17:34]free content buf [11:17:34]Sock 8.Close socket [11:17:34]Sock 8.Thread stoped [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:16]accept exits with 9 [11:25:16]New connection [11:25:16]New thread 3066629476 created [11:25:16]Thread 3066772836 joined [11:25:16]Waiting for new connection... [11:25:16] Sock 9.Parse request [11:25:16]Sock 9.Check first char [11:25:16]Sock 9.First char is OK [11:25:16]request: POST /json_proto HTTP/1.0 [11:25:16]Method: POST [11:25:16]URL: /json_proto [11:25:16]Method is POST - this is cgi request [11:25:16]url: /json_proto [11:25:16]query_string will be loaded in cgi processing [11:25:16]execute_cgi json_proto POST (null) [11:25:16]execute_cgi path=json_proto method=POST [11:25:16]POST find Content-Length [11:25:16]Host: 172.17.56.68:8080 [11:25:16]Content-Length: 647 [11:25:16]Content-Type: application/json [11:25:16] [11:25:16]POST finish read [11:25:16]Found Content-Length = 647 [11:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4502", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:16]execute_script... [11:25:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4502", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:16]POST & json_proto [11:25:16]process_json_proto [11:25:16]json parsed OK: [11:25:16]protocol is kg_v1.0 [11:25:16]action value=close_receipt [11:25:16]process_action close_receipt [11:25:16]cmd_close_receipt [11:25:16]MH_GetDate [11:25:16]Write to MH i2c: F0 00 00 17 11 17 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: F0 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: F0 09 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: F0 09 00 17 11 00 A1 9C 61 66 3A 8F 60 66 B3 [11:25:16]GetLastDocTimeStamp 1717672654 [11:25:16]current date 1717673121 [11:25:16]FM_GetShiftState [11:25:16]SAM_PROTO_GetShiftState [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 13 01 00 [11:25:16]Write to MH i2c: E2 08 00 18 11 80 13 01 00 00 00 00 00 A6 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 0E 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 0E 00 18 11 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 5F [11:25:16]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [11:25:16]wFMCommunicate OK [11:25:16]SAM_PROTO_GetShiftState done [11:25:16]FM_GetShiftState done [11:25:16]opened in 1717632745 [11:25:16]opened+sec_in_day 1717719145 [11:25:16]quantity*price = 22500 [11:25:16]sum+1 = 22501 [11:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 25 06.06.2024 11:25 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4250 ФПД: 104487403360578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T112521&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4250&fm=104487403360578&tin=02508201610067®Number=0000000000145775&sum=22500 0 [11:25:17]StoreToDocumentArchive [11:25:17]shift 85 fd 4250 [11:25:17]save to /storage/0085/doc_00004250 [11:25:17]save last doc name /storage/0085/doc_00004250 to /storage/kkm_last_doc_name [11:25:17]save OK [11:25:17]Clear old archive folders... [11:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:25:17]tlvbuf is 019BFAC0 [11:25:17]SAM_PROTO_ClearQueue [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 09 00 00 [11:25:17]Write to MH i2c: E2 08 00 25 11 80 09 00 00 00 00 00 00 A8 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 25 11 00 90 00 AA [11:25:17]RAPDU: 90 00 [11:25:17]wFMCommunicate OK [11:25:17]SAM_PROTO_ClearQueue done [11:25:17]KKMCreateOFDPacket [11:25:17]OFDProtocolAddRootSTLVToBuf [11:25:17]FM_MakeSignedData [11:25:17]FM_MakeSignedData [11:25:17]SAM_PROTO_SignData [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 0D 01 02 [11:25:17]Write to MH i2c: E2 08 00 26 11 80 0D 01 02 00 00 00 00 B0 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 26 11 00 90 00 AB [11:25:17]RAPDU: 90 00 [11:25:17]wFMCommunicate OK [11:25:17]wFMCommunicate request_size=255 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 A1 9C 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 [11:25:17]Write to MH i2c: E2 02 01 27 11 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 A1 9C 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 00 00 95 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 27 11 00 90 00 AC [11:25:17]RAPDU: 90 00 [11:25:17]wFMCommunicate OK [11:25:17]wFMCommunicate request_size=41 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9A 10 00 00 35 04 06 00 5F 07 DE 8F 91 42 [11:25:17]Write to MH i2c: E2 2C 00 28 11 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9A 10 00 00 35 04 06 00 5F 07 DE 8F 91 42 00 00 D2 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 28 11 00 90 00 AD [11:25:17]RAPDU: 90 00 [11:25:17]wFMCommunicate OK [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 0D 03 02 [11:25:17]Write to MH i2c: E2 08 00 29 11 80 0D 03 02 00 00 00 00 B5 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0B 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0B 00 29 11 00 0A 16 74 EA 8B 44 F8 0D 90 00 08 [11:25:17]RAPDU: 0A 16 74 EA 8B 44 F8 0D 90 00 [11:25:17]wFMCommunicate OK [11:25:17]SAM_PROTO_SignData done [11:25:17]FM_MakeSignedData done [11:25:17]CreateOFDProtocolMessage [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 11 00 00 [11:25:17]Write to MH i2c: E2 08 00 2A 11 80 11 00 00 00 00 00 00 B5 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 17 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 17 00 2A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 08 [11:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [11:25:17]wFMCommunicate OK [11:25:17]CreateOFDProtocolMessage done [11:25:17]OFDSenderStorePacket 4250 [11:25:17]StoreOFDPacket docnum=4250 [11:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2E 01 00 00 8F B3 26 01 51 63 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 A1 9C 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9A 10 00 00 35 04 06 00 5F 07 DE 8F 91 42 0A 16 74 EA 8B 44 F8 0D [11:25:17]CheckFolder [11:25:17]dirname=/storage/ofd_packets [11:25:17]CheckFolder done [11:25:17]ProducePacketName [11:25:17]name=ofd_packets/00004250 [11:25:17]NVStorageSaveData ofd_packets/00004250 [11:25:17]File name is /storage/ofd_packets/00004250 [11:25:17]Write 332 bytes [11:25:17]NVStorageSaveData done [11:25:17]OFDSenderStorePacket done [11:25:17]KKMCreateOFDPacket done [11:25:17]NVStorageSaveData kkm_last_timestamp [11:25:17]File name is /storage/kkm_last_timestamp [11:25:17]Write 4 bytes [11:25:17]NVStorageSaveData done [11:25:17]ExternCall_PrintAddStr [11:25:17]wPrintStart [11:25:17]Write to MH i2c: 01 00 00 2B 11 3C [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 07 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 07 00 2B 11 00 00 00 00 00 FF 0F 51 [11:25:17]RasterBufferAndPrint [11:25:17]line Счет N : (3)4502 [11:25:17]line ИНН: 02508201610067 [11:25:17]line Контрольно-Кассовый Чек [11:25:17]line ПРОДАЖА [11:25:17]line Товар: 2000034730018 [11:25:17]line Кофе Американо (GABB TRADE) [11:25:17]line 3.000 * 75.00 [11:25:17]line = 225.00 [11:25:17]line НДС 12% НСП 1% [11:25:17]line > о реализуемом товаре [11:25:17]line ИТОГО: 225.00 [11:25:17]line НСП 1% : 1.99 [11:25:17]line НДС 12% : 23.89 [11:25:17]line Наличными: 225.00 [11:25:17]line Безнал.: 0.00 [11:25:17]line Место: АЗС № 116 "Партнер Нефть" [11:25:17]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [11:25:17]line СНО: Общий режим [11:25:17]line Чек 25 06.06.2024 11:25 [11:25:17]line Смена: 85 ФФД: 1.0 [11:25:17]line ЗНМ: 0300000233 [11:25:17]line РНМ: 0000000000145775 [11:25:17]line Версия ККМ: v1.0 [11:25:17]line ФМ: 0000000000959360 [11:25:17]line ФД: 4250 [11:25:17]line ФПД: 104487403360578 [11:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T112521&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4250&fm=104487403360578&tin=02508201610067®Number=0000000000145775&sum=22500 [11:25:18]line 0 [11:25:18]OFD Sender: Processing packet 4250 [packets to send 2, broken 1] [11:25:18]ProducePacketName [11:25:18]name=ofd_packets/00004250 [11:25:18]OFD Sender: To server: pG, [11:25:18]CommunicateWithHost lk.salyk.kg:30040 [11:25:18]ConnectInit lk.salyk.kg [11:25:18]written 0, free lines is 4095 [11:25:18]Connected sock=10 [11:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2E 01 00 00 8F B3 26 01 51 63 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 A1 9C 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9A 10 00 00 35 04 06 00 5F 07 DE 8F 91 42 0A 16 74 EA 8B 44 F8 0D [11:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 CF A6 47 00 C8 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9A 10 00 00 F4 03 04 00 A0 48 61 66 B6 04 01 00 00 2A 9D 0E 3E 98 BF F2 9D [11:25:18]CommunicateWithHost err = 0 [11:25:18]CheckOFDResponse [11:25:18]1017 (14) - 77093643461234 [11:25:18]1041 (16) - 0000000000959360 [11:25:18]1040 (4) - 4250 [11:25:18]1012 (4) - 06.06.2024 05:26 [11:25:18]1206 (1) - 0 [11:25:18]OFD Sender: Remove packet 4250 [11:25:18]ProducePacketName [11:25:18]name=ofd_packets/00004250 [11:25:18]NVStorageDeleteData [11:25:18]Write to MH i2c: 01 00 00 54 11 65 [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: 01 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: 01 07 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: 01 07 00 54 11 00 00 00 00 00 B4 0C 2C [11:25:18]RasterBufferAndPrint [11:25:18]line [11:25:18]line [11:25:18]line [11:25:18]line [11:25:18]line [11:25:18]written 0, free lines is 3256 [11:25:18]MH_Cut [11:25:18]Write to MH i2c: D1 01 00 5B 11 01 3E [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: D1 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: D1 01 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: D1 01 00 5B 11 00 3D [11:25:18]Write to MH i2c: 01 00 00 5C 11 6D [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:19]OFD Sender: No OFD packet to send [11:25:19]*** Cut start [11:25:19]*** Partial cut [11:25:19]*** CUTSNS_PIN = 1 [11:25:19]*** CUTSNS_PIN = 0 [11:25:19]*** Brake cut motor [11:25:20]Read from MH i2c: 01 [11:25:20]MH_I2C_Read... [11:25:20]*** Stop cut motor [11:25:20]*** Cut end [11:25:20]Read from MH i2c: 01 07 00 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: 01 07 00 5C 11 00 00 00 00 00 FF 0F 82 [11:25:20]process_action close_receipt done [11:25:20]requested_data is exist [11:25:20]produce_requested_data [11:25:20]requested_item fm.sn is exist - process it [11:25:20]wFMCommunicate request_size=4 [11:25:20]MH_SAM_APDU [11:25:20]CAPDU: 80 11 00 00 [11:25:20]Write to MH i2c: E2 08 00 5D 11 80 11 00 00 00 00 00 00 E8 [11:25:20]Write i2c OK [11:25:20]MH_I2C_Read... [11:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:20]Read from MH i2c: E2 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: E2 17 00 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: E2 17 00 5D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 3B [11:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [11:25:20]wFMCommunicate OK [11:25:20]requested_item fd.num is exist - process it [11:25:20]SAM_PROTO_GetFieldsCounters [11:25:20]wFMCommunicate request_size=4 [11:25:20]MH_SAM_APDU [11:25:20]CAPDU: 80 13 00 00 [11:25:20]Write to MH i2c: E2 08 00 5E 11 80 13 00 00 00 00 00 00 EB [11:25:20]Write i2c OK [11:25:20]MH_I2C_Read... [11:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:20]Read from MH i2c: E2 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: E2 62 00 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: E2 62 00 5E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9A 10 00 00 0E 04 04 00 55 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 5A [11:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9A 10 00 00 0E 04 04 00 55 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 [11:25:20]wFMCommunicate OK [11:25:20]SAM_PROTO_GetFieldsCounters done [11:25:20]requested_item shift.num is exist - process it [11:25:20]requested_item shift.opened is exist - process it [11:25:20]req_shift_opened [11:25:20]FM_GetShiftState [11:25:20]SAM_PROTO_GetShiftState [11:25:20]wFMCommunicate request_size=4 [11:25:20]MH_SAM_APDU [11:25:20]CAPDU: 80 13 01 00 [11:25:20]Write to MH i2c: E2 08 00 5F 11 80 13 01 00 00 00 00 00 ED [11:25:20]Write i2c OK [11:25:20]MH_I2C_Read... [11:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:20]Read from MH i2c: E2 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: E2 0E 00 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: E2 0E 00 5F 11 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 A6 [11:25:20]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [11:25:20]wFMCommunicate OK [11:25:20]SAM_PROTO_GetShiftState done [11:25:20]FM_GetShiftState done [11:25:20]req_shift_opened done [11:25:20]requested_item shift.open_date is exist - process it [11:25:20]req_shift_open_date [11:25:20]req_shift_open_date done [11:25:20]produce_requested_data done [11:25:20]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4250,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [11:25:20]process_action_free close_receipt [11:25:20]json_value_free [11:25:20]json_value_free done [11:25:20]process_json_proto returns [11:25:20]Send response to host [11:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4250,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [11:25:20]free response buf [11:25:20]execute_script done [11:25:20]execute_script returns [11:25:20]free content buf [11:25:20]Sock 9.Close socket [11:25:20]Sock 9.Thread stoped [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:34]accept exits with 8 [11:49:34]New connection [11:49:34]New thread 3066772836 created [11:49:34]Thread 3066629476 joined [11:49:34]Waiting for new connection... [11:49:34] Sock 8.Parse request [11:49:34]Sock 8.Check first char [11:49:34]Sock 8.First char is OK [11:49:34]request: POST /json_proto HTTP/1.0 [11:49:34]Method: POST [11:49:34]URL: /json_proto [11:49:34]Method is POST - this is cgi request [11:49:34]url: /json_proto [11:49:34]query_string will be loaded in cgi processing [11:49:34]execute_cgi json_proto POST (null) [11:49:34]execute_cgi path=json_proto method=POST [11:49:34]POST find Content-Length [11:49:34]Host: 172.17.56.68:8080 [11:49:34]Content-Length: 814 [11:49:34]Content-Type: application/json [11:49:34] [11:49:34]POST finish read [11:49:34]Found Content-Length = 814 [11:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4503", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:34]execute_script... [11:49: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 : (3)4503", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:34]POST & json_proto [11:49:34]process_json_proto [11:49:34]json parsed OK: [11:49:34]protocol is kg_v1.0 [11:49:34]action value=close_receipt [11:49:34]process_action close_receipt [11:49:34]cmd_close_receipt [11:49:34]MH_GetDate [11:49:34]Write to MH i2c: F0 00 00 60 11 60 [11:49:34]Write i2c OK [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: F0 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: F0 09 00 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: F0 09 00 60 11 00 52 A2 61 66 3A 8F 60 66 B3 [11:49:34]GetLastDocTimeStamp 1717673121 [11:49:34]current date 1717674578 [11:49:34]FM_GetShiftState [11:49:34]SAM_PROTO_GetShiftState [11:49:34]wFMCommunicate request_size=4 [11:49:34]MH_SAM_APDU [11:49:34]CAPDU: 80 13 01 00 [11:49:34]Write to MH i2c: E2 08 00 61 11 80 13 01 00 00 00 00 00 EF [11:49:34]Write i2c OK [11:49:34]MH_I2C_Read... [11:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:34]Read from MH i2c: E2 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: E2 0E 00 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: E2 0E 00 61 11 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 A8 [11:49:34]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [11:49:34]wFMCommunicate OK [11:49:34]SAM_PROTO_GetShiftState done [11:49:34]FM_GetShiftState done [11:49:34]opened in 1717632745 [11:49:34]opened+sec_in_day 1717719145 [11:49:34]quantity*price = 11300 [11:49:34]sum+1 = 11301 [11:49:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 0.00 Безнал.: 113.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 26 06.06.2024 11:49 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959360 ФД: 4251 ФПД: 242432633849464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T114939&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4251&fm=242432633849464&tin=02508201610067®Number=0000000000145775&sum=11300 0 [11:49:35]StoreToDocumentArchive [11:49:35]shift 85 fd 4251 [11:49:35]save to /storage/0085/doc_00004251 [11:49:35]save last doc name /storage/0085/doc_00004251 to /storage/kkm_last_doc_name [11:49:35]save OK [11:49:35]Clear old archive folders... [11:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:49:35]tlvbuf is B6E7C430 [11:49:35]SAM_PROTO_ClearQueue [11:49:35]wFMCommunicate request_size=4 [11:49:35]MH_SAM_APDU [11:49:35]CAPDU: 80 09 00 00 [11:49:35]Write to MH i2c: E2 08 00 6E 11 80 09 00 00 00 00 00 00 F1 [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:35]Read from MH i2c: E2 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 03 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 03 00 6E 11 00 90 00 F3 [11:49:35]RAPDU: 90 00 [11:49:35]wFMCommunicate OK [11:49:35]SAM_PROTO_ClearQueue done [11:49:35]KKMCreateOFDPacket [11:49:35]OFDProtocolAddRootSTLVToBuf [11:49:35]FM_MakeSignedData [11:49:35]FM_MakeSignedData [11:49:35]SAM_PROTO_SignData [11:49:35]wFMCommunicate request_size=4 [11:49:35]MH_SAM_APDU [11:49:35]CAPDU: 80 0D 01 02 [11:49:35]Write to MH i2c: E2 08 00 6F 11 80 0D 01 02 00 00 00 00 F9 [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:35]Read from MH i2c: E2 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 03 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 03 00 6F 11 00 90 00 F4 [11:49:35]RAPDU: 90 00 [11:49:35]wFMCommunicate OK [11:49:35]wFMCommunicate request_size=255 [11:49:35]MH_SAM_APDU [11:49:35]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 53 A2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:49:35]Write to MH i2c: E2 02 01 70 11 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 53 A2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 D2 [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:35]Read from MH i2c: E2 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 03 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 03 00 70 11 00 90 00 F5 [11:49:35]RAPDU: 90 00 [11:49:35]wFMCommunicate OK [11:49:35]wFMCommunicate request_size=30 [11:49:35]MH_SAM_APDU [11:49:35]CAPDU: 80 0D 02 02 19 30 39 35 39 33 36 30 10 04 04 00 9B 10 00 00 35 04 06 00 DC 7D BF 05 C6 78 [11:49:35]Write to MH i2c: E2 21 00 71 11 80 0D 02 02 19 00 30 39 35 39 33 36 30 10 04 04 00 9B 10 00 00 35 04 06 00 DC 7D BF 05 C6 78 00 00 FB [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:35]Read from MH i2c: E2 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 03 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 03 00 71 11 00 90 00 F6 [11:49:35]RAPDU: 90 00 [11:49:35]wFMCommunicate OK [11:49:35]wFMCommunicate request_size=4 [11:49:35]MH_SAM_APDU [11:49:35]CAPDU: 80 0D 03 02 [11:49:35]Write to MH i2c: E2 08 00 72 11 80 0D 03 02 00 00 00 00 FE [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:35]Read from MH i2c: E2 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 0B 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 0B 00 72 11 00 A6 54 28 1F 84 31 2B DE 90 00 FE [11:49:35]RAPDU: A6 54 28 1F 84 31 2B DE 90 00 [11:49:35]wFMCommunicate OK [11:49:35]SAM_PROTO_SignData done [11:49:35]FM_MakeSignedData done [11:49:35]CreateOFDProtocolMessage [11:49:35]wFMCommunicate request_size=4 [11:49:35]MH_SAM_APDU [11:49:35]CAPDU: 80 11 00 00 [11:49:35]Write to MH i2c: E2 08 00 73 11 80 11 00 00 00 00 00 00 FE [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:35]Read from MH i2c: E2 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 17 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 17 00 73 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 51 [11:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [11:49:35]wFMCommunicate OK [11:49:35]CreateOFDProtocolMessage done [11:49:35]OFDSenderStorePacket 4251 [11:49:35]StoreOFDPacket docnum=4251 [11:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 23 01 00 00 42 B3 1B 01 87 4A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 53 A2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9B 10 00 00 35 04 06 00 DC 7D BF 05 C6 78 A6 54 28 1F 84 31 2B DE [11:49:35]CheckFolder [11:49:35]dirname=/storage/ofd_packets [11:49:35]CheckFolder done [11:49:35]ProducePacketName [11:49:35]name=ofd_packets/00004251 [11:49:35]NVStorageSaveData ofd_packets/00004251 [11:49:35]File name is /storage/ofd_packets/00004251 [11:49:35]Write 321 bytes [11:49:35]NVStorageSaveData done [11:49:35]OFDSenderStorePacket done [11:49:35]KKMCreateOFDPacket done [11:49:35]NVStorageSaveData kkm_last_timestamp [11:49:35]File name is /storage/kkm_last_timestamp [11:49:35]Write 4 bytes [11:49:35]NVStorageSaveData done [11:49:35]ExternCall_PrintAddStr [11:49:35]wPrintStart [11:49:35]Write to MH i2c: 01 00 00 74 11 85 [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: 01 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: 01 07 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: 01 07 00 74 11 00 00 00 00 00 FF 0F 9A [11:49:35]RasterBufferAndPrint [11:49:35]line Счет N : (3)4503 [11:49:35]line ИНН: 02508201610067 [11:49:35]line Контрольно-Кассовый Чек [11:49:35]line ПРОДАЖА [11:49:35]line Товар: 5449000006271 [11:49:35]line Напиток Фанта 1л [11:49:35]line 1.000 * 113.00 [11:49:35]line = 113.00 [11:49:35]line НДС 12% НСП 1% [11:49:35]line > о реализуемом товаре [11:49:35]line ИТОГО: 113.00 [11:49:35]line НСП 1% : 1.00 [11:49:35]line НДС 12% : 12.00 [11:49:35]line Наличными: 0.00 [11:49:35]line Безнал.: 113.00 [11:49:35]line Место: АЗС № 116 "Партнер Нефть" [11:49:35]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [11:49:35]line СНО: Общий режим [11:49:35]line Чек 26 06.06.2024 11:49 [11:49:35]line Смена: 85 ФФД: 1.0 [11:49:35]line ЗНМ: 0300000233 [11:49:35]line РНМ: 0000000000145775 [11:49:35]line Версия ККМ: v1.0 [11:49:35]line Платежная система: Бакай Банк [11:49:35]line ФМ: 0000000000959360 [11:49:35]line ФД: 4251 [11:49:35]line ФПД: 242432633849464 [11:49:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T114939&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4251&fm=242432633849464&tin=02508201610067®Number=0000000000145775&sum=11300 [11:49:36]line 0 [11:49:36]OFD Sender: Processing packet 4251 [packets to send 2, broken 1] [11:49:36]ProducePacketName [11:49:36]name=ofd_packets/00004251 [11:49:36]OFD Sender: To server: pG, [11:49:36]CommunicateWithHost lk.salyk.kg:30040 [11:49:36]ConnectInit lk.salyk.kg [11:49:36]written 0, free lines is 4095 [11:49:36]Connected sock=10 [11:49:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 23 01 00 00 42 B3 1B 01 87 4A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 53 A2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9B 10 00 00 35 04 06 00 DC 7D BF 05 C6 78 A6 54 28 1F 84 31 2B DE [11:49:36]Write to MH i2c: 01 00 00 9E 11 AF [11:49:36]Write i2c OK [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: 01 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: 01 07 00 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: 01 07 00 9E 11 00 00 00 00 00 99 0C 5B [11:49:36]RasterBufferAndPrint [11:49:36]line [11:49:36]line [11:49:36]line [11:49:36]line [11:49:36]line [11:49:36]written 0, free lines is 3232 [11:49:36]MH_Cut [11:49:36]Write to MH i2c: D1 01 00 A5 11 01 88 [11:49:36]Write i2c OK [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: D1 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: D1 01 00 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: D1 01 00 A5 11 00 87 [11:49:36]Write to MH i2c: 01 00 00 A6 11 B7 [11:49:36]Write i2c OK [11:49:36]MH_I2C_Read... [11:49:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 84 63 47 00 AF 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 39 35 39 33 36 30 10 04 04 00 9B 10 00 00 F4 03 04 00 52 4E 61 66 B6 04 01 00 00 F6 9B 96 1A 11 E0 3C 96 [11:49:36]CommunicateWithHost err = 0 [11:49:36]CheckOFDResponse [11:49:36]1017 (14) - 77093643461234 [11:49:36]1041 (16) - 0000000000959360 [11:49:36]1040 (4) - 4251 [11:49:36]1012 (4) - 06.06.2024 05:51 [11:49:36]1206 (1) - 0 [11:49:36]OFD Sender: Remove packet 4251 [11:49:36]ProducePacketName [11:49:36]name=ofd_packets/00004251 [11:49:36]NVStorageDeleteData [11:49:37]OFD Sender: No OFD packet to send [11:49:37]*** Cut start [11:49:37]*** Partial cut [11:49:37]*** CUTSNS_PIN = 1 [11:49:37]*** CUTSNS_PIN = 0 [11:49:37]*** Brake cut motor [11:49:38]Read from MH i2c: 01 [11:49:38]MH_I2C_Read... [11:49:38]*** Stop cut motor [11:49:38]*** Cut end [11:49:38]Read from MH i2c: 01 07 00 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: 01 07 00 A6 11 00 00 00 00 00 FF 0F CC [11:49:38]process_action close_receipt done [11:49:38]requested_data is exist [11:49:38]produce_requested_data [11:49:38]requested_item fm.sn is exist - process it [11:49:38]wFMCommunicate request_size=4 [11:49:38]MH_SAM_APDU [11:49:38]CAPDU: 80 11 00 00 [11:49:38]Write to MH i2c: E2 08 00 A7 11 80 11 00 00 00 00 00 00 32 [11:49:38]Write i2c OK [11:49:38]MH_I2C_Read... [11:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:38]Read from MH i2c: E2 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: E2 17 00 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: E2 17 00 A7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 85 [11:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [11:49:38]wFMCommunicate OK [11:49:38]requested_item fd.num is exist - process it [11:49:38]SAM_PROTO_GetFieldsCounters [11:49:38]wFMCommunicate request_size=4 [11:49:38]MH_SAM_APDU [11:49:38]CAPDU: 80 13 00 00 [11:49:38]Write to MH i2c: E2 08 00 A8 11 80 13 00 00 00 00 00 00 35 [11:49:38]Write i2c OK [11:49:38]MH_I2C_Read... [11:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:38]Read from MH i2c: E2 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: E2 62 00 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: E2 62 00 A8 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9B 10 00 00 0E 04 04 00 55 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 A8 [11:49:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9B 10 00 00 0E 04 04 00 55 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 [11:49:38]wFMCommunicate OK [11:49:38]SAM_PROTO_GetFieldsCounters done [11:49:38]requested_item shift.num is exist - process it [11:49:38]requested_item shift.opened is exist - process it [11:49:38]req_shift_opened [11:49:38]FM_GetShiftState [11:49:38]SAM_PROTO_GetShiftState [11:49:38]wFMCommunicate request_size=4 [11:49:38]MH_SAM_APDU [11:49:38]CAPDU: 80 13 01 00 [11:49:38]Write to MH i2c: E2 08 00 A9 11 80 13 01 00 00 00 00 00 37 [11:49:38]Write i2c OK [11:49:38]MH_I2C_Read... [11:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:38]Read from MH i2c: E2 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: E2 0E 00 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: E2 0E 00 A9 11 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 F0 [11:49:38]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [11:49:38]wFMCommunicate OK [11:49:38]SAM_PROTO_GetShiftState done [11:49:38]FM_GetShiftState done [11:49:38]req_shift_opened done [11:49:38]requested_item shift.open_date is exist - process it [11:49:38]req_shift_open_date [11:49:38]req_shift_open_date done [11:49:38]produce_requested_data done [11:49:38]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4251,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [11:49:38]process_action_free close_receipt [11:49:38]json_value_free [11:49:38]json_value_free done [11:49:38]process_json_proto returns [11:49:38]Send response to host [11:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4251,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [11:49:38]free response buf [11:49:38]execute_script done [11:49:38]execute_script returns [11:49:38]free content buf [11:49:38]Sock 8.Close socket [11:49:38]Sock 8.Thread stoped [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:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:38]accept exits with 9 [11:57:38]New connection [11:57:38]New thread 3066629476 created [11:57:38]Thread 3066772836 joined [11:57:38]Waiting for new connection... [11:57:38] Sock 9.Parse request [11:57:38]Sock 9.Check first char [11:57:38]Sock 9.First char is OK [11:57:38]request: POST /json_proto HTTP/1.0 [11:57:38]Method: POST [11:57:38]URL: /json_proto [11:57:38]Method is POST - this is cgi request [11:57:38]url: /json_proto [11:57:38]query_string will be loaded in cgi processing [11:57:38]execute_cgi json_proto POST (null) [11:57:38]execute_cgi path=json_proto method=POST [11:57:38]POST find Content-Length [11:57:38]Host: 172.17.56.68:8080 [11:57:38]Content-Length: 656 [11:57:38]Content-Type: application/json [11:57:38] [11:57:38]POST finish read [11:57:38]Found Content-Length = 656 [11:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4504", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 226.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:38]execute_script... [11:57: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 : (3)4504", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 226.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:38]POST & json_proto [11:57:38]process_json_proto [11:57:38]json parsed OK: [11:57:38]protocol is kg_v1.0 [11:57:38]action value=close_receipt [11:57:38]process_action close_receipt [11:57:38]cmd_close_receipt [11:57:38]MH_GetDate [11:57:38]Write to MH i2c: F0 00 00 AA 11 AA [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: F0 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: F0 09 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: F0 09 00 AA 11 00 36 A4 61 66 3A 8F 60 66 E3 [11:57:38]GetLastDocTimeStamp 1717674579 [11:57:38]current date 1717675062 [11:57:38]FM_GetShiftState [11:57:38]SAM_PROTO_GetShiftState [11:57:38]wFMCommunicate request_size=4 [11:57:38]MH_SAM_APDU [11:57:38]CAPDU: 80 13 01 00 [11:57:38]Write to MH i2c: E2 08 00 AB 11 80 13 01 00 00 00 00 00 39 [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:38]Read from MH i2c: E2 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 AB 11 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 F2 [11:57:38]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [11:57:38]wFMCommunicate OK [11:57:38]SAM_PROTO_GetShiftState done [11:57:38]FM_GetShiftState done [11:57:38]opened in 1717632745 [11:57:38]opened+sec_in_day 1717719145 [11:57:38]quantity*price = 22600 [11:57:38]sum+1 = 22601 [11:57:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 226.00 НСП 1% : 2.00 НДС 12% : 24.00 Наличными: 226.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 27 06.06.2024 11:57 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4252 ФПД: 5980453950993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T115743&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4252&fm=5980453950993&tin=02508201610067®Number=0000000000145775&sum=22600 0 [11:57:39]StoreToDocumentArchive [11:57:39]shift 85 fd 4252 [11:57:39]save to /storage/0085/doc_00004252 [11:57:39]save last doc name /storage/0085/doc_00004252 to /storage/kkm_last_doc_name [11:57:39]save OK [11:57:39]Clear old archive folders... [11:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:57:39]tlvbuf is 019AC8B0 [11:57:39]SAM_PROTO_ClearQueue [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 09 00 00 [11:57:39]Write to MH i2c: E2 08 00 B8 11 80 09 00 00 00 00 00 00 3B [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 B8 11 00 90 00 3D [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_ClearQueue done [11:57:39]KKMCreateOFDPacket [11:57:39]OFDProtocolAddRootSTLVToBuf [11:57:39]FM_MakeSignedData [11:57:39]FM_MakeSignedData [11:57:39]SAM_PROTO_SignData [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 01 02 [11:57:39]Write to MH i2c: E2 08 00 B9 11 80 0D 01 02 00 00 00 00 43 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 B9 11 00 90 00 3E [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]wFMCommunicate request_size=255 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 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 37 A4 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 [11:57:39]Write to MH i2c: E2 02 01 BA 11 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 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 37 A4 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 00 00 9F [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 BA 11 00 90 00 3F [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]wFMCommunicate request_size=37 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9C 10 00 00 35 04 06 00 05 70 6E D5 56 11 [11:57:39]Write to MH i2c: E2 28 00 BB 11 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9C 10 00 00 35 04 06 00 05 70 6E D5 56 11 00 00 68 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 BB 11 00 90 00 40 [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 03 02 [11:57:39]Write to MH i2c: E2 08 00 BC 11 80 0D 03 02 00 00 00 00 48 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 0B 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 0B 00 BC 11 00 9D 67 5E 31 83 E6 36 B1 90 00 2C [11:57:39]RAPDU: 9D 67 5E 31 83 E6 36 B1 90 00 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_SignData done [11:57:39]FM_MakeSignedData done [11:57:39]CreateOFDProtocolMessage [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 11 00 00 [11:57:39]Write to MH i2c: E2 08 00 BD 11 80 11 00 00 00 00 00 00 48 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 17 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 17 00 BD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 9B [11:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [11:57:39]wFMCommunicate OK [11:57:39]CreateOFDProtocolMessage done [11:57:39]OFDSenderStorePacket 4252 [11:57:39]StoreOFDPacket docnum=4252 [11:57:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 8A 33 22 01 F7 D3 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 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 37 A4 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9C 10 00 00 35 04 06 00 05 70 6E D5 56 11 9D 67 5E 31 83 E6 36 B1 [11:57:39]CheckFolder [11:57:39]dirname=/storage/ofd_packets [11:57:39]CheckFolder done [11:57:39]ProducePacketName [11:57:39]name=ofd_packets/00004252 [11:57:39]NVStorageSaveData ofd_packets/00004252 [11:57:39]File name is /storage/ofd_packets/00004252 [11:57:39]Write 328 bytes [11:57:39]NVStorageSaveData done [11:57:39]OFDSenderStorePacket done [11:57:39]KKMCreateOFDPacket done [11:57:39]NVStorageSaveData kkm_last_timestamp [11:57:39]File name is /storage/kkm_last_timestamp [11:57:39]Write 4 bytes [11:57:39]NVStorageSaveData done [11:57:39]ExternCall_PrintAddStr [11:57:39]wPrintStart [11:57:39]Write to MH i2c: 01 00 00 BE 11 CF [11:57:39]OFD Sender: Processing packet 4252 [packets to send 2, broken 1] [11:57:39]ProducePacketName [11:57:39]name=ofd_packets/00004252 [11:57:39]OFD Sender: To server: pG, [11:57:39]CommunicateWithHost lk.salyk.kg:30040 [11:57:39]ConnectInit lk.salyk.kg [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: 01 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: 01 07 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: 01 07 00 BE 11 00 00 00 00 00 FF 0F E4 [11:57:39]RasterBufferAndPrint [11:57:39]line Счет N : (3)4504 [11:57:39]line ИНН: 02508201610067 [11:57:39]line Контрольно-Кассовый Чек [11:57:39]line ПРОДАЖА [11:57:39]line Товар: 5449000054227 [11:57:39]line Напиток Кока-Кола 1л [11:57:39]line 2.000 * 113.00 [11:57:39]line = 226.00 [11:57:39]line НДС 12% НСП 1% [11:57:39]line > о реализуемом товаре [11:57:39]line ИТОГО: 226.00 [11:57:39]line НСП 1% : 2.00 [11:57:39]line НДС 12% : 24.00 [11:57:39]line Наличными: 226.00 [11:57:39]line Безнал.: 0.00 [11:57:39]line Место: АЗС № 116 "Партнер Нефть" [11:57:39]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [11:57:39]line СНО: Общий режим [11:57:39]line Чек 27 06.06.2024 11:57 [11:57:39]line Смена: 85 ФФД: 1.0 [11:57:39]line ЗНМ: 0300000233 [11:57:39]line РНМ: 0000000000145775 [11:57:39]line Версия ККМ: v1.0 [11:57:39]line ФМ: 0000000000959360 [11:57:39]line ФД: 4252 [11:57:40]line ФПД: 5980453950993 [11:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T115743&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4252&fm=5980453950993&tin=02508201610067®Number=0000000000145775&sum=22600 [11:57:40]line 0 [11:57:40]Connected sock=10 [11:57:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 8A 33 22 01 F7 D3 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 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 37 A4 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9C 10 00 00 35 04 06 00 05 70 6E D5 56 11 9D 67 5E 31 83 E6 36 B1 [11:57:40]written 0, free lines is 4095 [11:57:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 10 70 47 00 4B 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9C 10 00 00 F4 03 04 00 36 50 61 66 B6 04 01 00 00 2F 17 9E B5 65 AB 89 2F [11:57:40]CommunicateWithHost err = 0 [11:57:40]CheckOFDResponse [11:57:40]1017 (14) - 77093643461234 [11:57:40]1041 (16) - 0000000000959360 [11:57:40]1040 (4) - 4252 [11:57:40]1012 (4) - 06.06.2024 05:59 [11:57:40]1206 (1) - 0 [11:57:40]OFD Sender: Remove packet 4252 [11:57:40]ProducePacketName [11:57:40]name=ofd_packets/00004252 [11:57:40]NVStorageDeleteData [11:57:40]Write to MH i2c: 01 00 00 E6 11 F7 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 E6 11 00 00 00 00 00 C7 0C D1 [11:57:40]RasterBufferAndPrint [11:57:40]line [11:57:40]line [11:57:40]line [11:57:40]line [11:57:40]line [11:57:40]written 0, free lines is 3275 [11:57:40]MH_Cut [11:57:40]Write to MH i2c: D1 01 00 ED 11 01 D0 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: D1 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: D1 01 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: D1 01 00 ED 11 00 CF [11:57:40]Write to MH i2c: 01 00 00 EE 11 FF [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]OFD Sender: No OFD packet to send [11:57:41]*** Cut start [11:57:41]*** Partial cut [11:57:41]*** CUTSNS_PIN = 1 [11:57:41]*** CUTSNS_PIN = 0 [11:57:41]*** Brake cut motor [11:57:42]Read from MH i2c: 01 [11:57:42]MH_I2C_Read... [11:57:42]*** Stop cut motor [11:57:42]*** Cut end [11:57:42]Read from MH i2c: 01 07 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: 01 07 00 EE 11 00 00 00 00 00 FF 0F 14 [11:57:42]process_action close_receipt done [11:57:42]requested_data is exist [11:57:42]produce_requested_data [11:57:42]requested_item fm.sn is exist - process it [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 11 00 00 [11:57:42]Write to MH i2c: E2 08 00 EF 11 80 11 00 00 00 00 00 00 7A [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 17 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 17 00 EF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 CD [11:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [11:57:42]wFMCommunicate OK [11:57:42]requested_item fd.num is exist - process it [11:57:42]SAM_PROTO_GetFieldsCounters [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 13 00 00 [11:57:42]Write to MH i2c: E2 08 00 F0 11 80 13 00 00 00 00 00 00 7D [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 62 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 62 00 F0 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9C 10 00 00 0E 04 04 00 55 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 F4 [11:57:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9C 10 00 00 0E 04 04 00 55 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 [11:57:42]wFMCommunicate OK [11:57:42]SAM_PROTO_GetFieldsCounters done [11:57:42]requested_item shift.num is exist - process it [11:57:42]requested_item shift.opened is exist - process it [11:57:42]req_shift_opened [11:57:42]FM_GetShiftState [11:57:42]SAM_PROTO_GetShiftState [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 13 01 00 [11:57:42]Write to MH i2c: E2 08 00 F1 11 80 13 01 00 00 00 00 00 7F [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0E 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0E 00 F1 11 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 38 [11:57:42]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [11:57:42]wFMCommunicate OK [11:57:42]SAM_PROTO_GetShiftState done [11:57:42]FM_GetShiftState done [11:57:42]req_shift_opened done [11:57:42]requested_item shift.open_date is exist - process it [11:57:42]req_shift_open_date [11:57:42]req_shift_open_date done [11:57:42]produce_requested_data done [11:57:42]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4252,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [11:57:42]process_action_free close_receipt [11:57:42]json_value_free [11:57:42]json_value_free done [11:57:42]process_json_proto returns [11:57:42]Send response to host [11:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4252,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [11:57:42]free response buf [11:57:42]execute_script done [11:57:42]execute_script returns [11:57:42]free content buf [11:57:42]Sock 9.Close socket [11:57:42]Sock 9.Thread stoped [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [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:47]accept exits with 8 [12:31:47]New connection [12:31:47]New thread 3066772836 created [12:31:47]Thread 3066629476 joined [12:31:47]Waiting for new connection... [12:31:47] Sock 8.Parse request [12:31:47]Sock 8.Check first char [12:31:47]Sock 8.First char is OK [12:31:47]request: POST /json_proto HTTP/1.0 [12:31:47]Method: POST [12:31:47]URL: /json_proto [12:31:47]Method is POST - this is cgi request [12:31:47]url: /json_proto [12:31:47]query_string will be loaded in cgi processing [12:31:47]execute_cgi json_proto POST (null) [12:31:47]execute_cgi path=json_proto method=POST [12:31:47]POST find Content-Length [12:31:47]Host: 172.17.56.68:8080 [12:31:47]Content-Length: 696 [12:31:47]Content-Type: application/json [12:31:47] [12:31:47]POST finish read [12:31:47]Found Content-Length = 696 [12:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4505", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:47]execute_script... [12:31: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 : (3)4505", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:47]POST & json_proto [12:31:47]process_json_proto [12:31:47]json parsed OK: [12:31:47]protocol is kg_v1.0 [12:31:47]action value=close_receipt [12:31:47]process_action close_receipt [12:31:47]cmd_close_receipt [12:31:47]MH_GetDate [12:31:47]Write to MH i2c: F0 00 00 F2 11 F2 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: F0 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: F0 09 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: F0 09 00 F2 11 00 38 AC 61 66 3A 8F 60 66 35 [12:31:47]GetLastDocTimeStamp 1717675063 [12:31:47]current date 1717677112 [12:31:47]FM_GetShiftState [12:31:47]SAM_PROTO_GetShiftState [12:31:47]wFMCommunicate request_size=4 [12:31:47]MH_SAM_APDU [12:31:47]CAPDU: 80 13 01 00 [12:31:47]Write to MH i2c: E2 08 00 F3 11 80 13 01 00 00 00 00 00 81 [12:31:47]Write i2c OK [12:31:47]MH_I2C_Read... [12:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:47]Read from MH i2c: E2 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 0E 00 [12:31:47]MH_I2C_Read... [12:31:47]Read from MH i2c: E2 0E 00 F3 11 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 3A [12:31:47]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [12:31:47]wFMCommunicate OK [12:31:47]SAM_PROTO_GetShiftState done [12:31:47]FM_GetShiftState done [12:31:47]opened in 1717632745 [12:31:47]opened+sec_in_day 1717719145 [12:31:47]quantity*price = 10000 [12:31:47]sum+1 = 10001 [12:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 28 06.06.2024 12:31 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4253 ФПД: 140764340604898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T123152&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4253&fm=140764340604898&tin=02508201610067®Number=0000000000145775&sum=10000 0 [12:31:48]StoreToDocumentArchive [12:31:48]shift 85 fd 4253 [12:31:48]save to /storage/0085/doc_00004253 [12:31:48]save last doc name /storage/0085/doc_00004253 to /storage/kkm_last_doc_name [12:31:48]save OK [12:31:48]Clear old archive folders... [12:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=298 [12:31:48]tlvbuf is 019D1410 [12:31:48]SAM_PROTO_ClearQueue [12:31:48]wFMCommunicate request_size=4 [12:31:48]MH_SAM_APDU [12:31:48]CAPDU: 80 09 00 00 [12:31:48]Write to MH i2c: E2 08 00 00 12 80 09 00 00 00 00 00 00 84 [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:48]Read from MH i2c: E2 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 03 00 [12:31:48]MH_I2C_Read... [12:31:48]Read from MH i2c: E2 03 00 00 12 00 90 00 86 [12:31:48]RAPDU: 90 00 [12:31:48]wFMCommunicate OK [12:31:48]SAM_PROTO_ClearQueue done [12:31:48]KKMCreateOFDPacket [12:31:48]OFDProtocolAddRootSTLVToBuf [12:31:48]FM_MakeSignedData [12:31:48]FM_MakeSignedData [12:31:48]SAM_PROTO_SignData [12:31:48]wFMCommunicate request_size=4 [12:31:48]MH_SAM_APDU [12:31:48]CAPDU: 80 0D 01 02 [12:31:48]Write to MH i2c: E2 08 00 01 12 80 0D 01 02 00 00 00 00 8C [12:31:48]Write i2c OK [12:31:48]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 03 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 03 00 01 12 00 90 00 87 [12:31:49]RAPDU: 90 00 [12:31:49]wFMCommunicate OK [12:31:49]wFMCommunicate request_size=255 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 1C 00 00 00 F4 03 04 00 38 AC 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [12:31:49]Write to MH i2c: E2 02 01 02 12 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 1C 00 00 00 F4 03 04 00 38 AC 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 11 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 03 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 03 00 02 12 00 90 00 88 [12:31:49]RAPDU: 90 00 [12:31:49]wFMCommunicate OK [12:31:49]wFMCommunicate request_size=57 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9D 10 00 00 35 04 06 00 80 06 40 84 CF E2 [12:31:49]Write to MH i2c: E2 3C 00 03 12 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9D 10 00 00 35 04 06 00 80 06 40 84 CF E2 00 00 F8 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 03 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 03 00 03 12 00 90 00 89 [12:31:49]RAPDU: 90 00 [12:31:49]wFMCommunicate OK [12:31:49]wFMCommunicate request_size=4 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 0D 03 02 [12:31:49]Write to MH i2c: E2 08 00 04 12 80 0D 03 02 00 00 00 00 91 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0B 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0B 00 04 12 00 1E 7F 67 52 A1 B1 0B 50 90 00 95 [12:31:49]RAPDU: 1E 7F 67 52 A1 B1 0B 50 90 00 [12:31:49]wFMCommunicate OK [12:31:49]SAM_PROTO_SignData done [12:31:49]FM_MakeSignedData done [12:31:49]CreateOFDProtocolMessage [12:31:49]wFMCommunicate request_size=4 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 11 00 00 [12:31:49]Write to MH i2c: E2 08 00 05 12 80 11 00 00 00 00 00 00 91 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 17 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 17 00 05 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 E4 [12:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [12:31:49]wFMCommunicate OK [12:31:49]CreateOFDProtocolMessage done [12:31:49]OFDSenderStorePacket 4253 [12:31:49]StoreOFDPacket docnum=4253 [12:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3E 01 00 00 A1 82 36 01 B2 86 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 1C 00 00 00 F4 03 04 00 38 AC 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9D 10 00 00 35 04 06 00 80 06 40 84 CF E2 1E 7F 67 52 A1 B1 0B 50 [12:31:49]CheckFolder [12:31:49]dirname=/storage/ofd_packets [12:31:49]CheckFolder done [12:31:49]ProducePacketName [12:31:49]name=ofd_packets/00004253 [12:31:49]NVStorageSaveData ofd_packets/00004253 [12:31:49]File name is /storage/ofd_packets/00004253 [12:31:49]Write 348 bytes [12:31:49]NVStorageSaveData done [12:31:49]OFDSenderStorePacket done [12:31:49]KKMCreateOFDPacket done [12:31:49]NVStorageSaveData kkm_last_timestamp [12:31:49]File name is /storage/kkm_last_timestamp [12:31:49]Write 4 bytes [12:31:49]NVStorageSaveData done [12:31:49]ExternCall_PrintAddStr [12:31:49]wPrintStart [12:31:49]Write to MH i2c: 01 00 00 06 12 18 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: 01 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: 01 07 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: 01 07 00 06 12 00 00 00 00 00 FF 0F 2D [12:31:49]RasterBufferAndPrint [12:31:49]line Счет N : (3)4505 [12:31:49]line ИНН: 02508201610067 [12:31:49]line Контрольно-Кассовый Чек [12:31:49]line ПРОДАЖА [12:31:49]line Товар: 4870001571528 [12:31:49]line Вода ASU пит н.газ персик ПЭТ 1,0 л [12:31:49]line 1.000 * 100.00 [12:31:49]line = 100.00 [12:31:49]line НДС 12% НСП 1% [12:31:49]line > о реализуемом товаре [12:31:49]line ИТОГО: 100.00 [12:31:49]line НСП 1% : 0.88 [12:31:49]line НДС 12% : 10.62 [12:31:49]line Наличными: 100.00 [12:31:49]line Безнал.: 0.00 [12:31:49]line Место: АЗС № 116 "Партнер Нефть" [12:31:49]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [12:31:49]line СНО: Общий режим [12:31:49]line Чек 28 06.06.2024 12:31 [12:31:49]line Смена: 85 ФФД: 1.0 [12:31:49]line ЗНМ: 0300000233 [12:31:49]line РНМ: 0000000000145775 [12:31:49]line Версия ККМ: v1.0 [12:31:49]line ФМ: 0000000000959360 [12:31:49]line ФД: 4253 [12:31:49]line ФПД: 140764340604898 [12:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T123152&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4253&fm=140764340604898&tin=02508201610067®Number=0000000000145775&sum=10000 [12:31:49]line 0 [12:31:49]OFD Sender: Processing packet 4253 [packets to send 2, broken 1] [12:31:49]ProducePacketName [12:31:49]name=ofd_packets/00004253 [12:31:49]OFD Sender: To server: pG, [12:31:49]CommunicateWithHost lk.salyk.kg:30040 [12:31:49]ConnectInit lk.salyk.kg [12:31:49]written 0, free lines is 4095 [12:31:49]Connected sock=10 [12:31:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3E 01 00 00 A1 82 36 01 B2 86 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 1C 00 00 00 F4 03 04 00 38 AC 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9D 10 00 00 35 04 06 00 80 06 40 84 CF E2 1E 7F 67 52 A1 B1 0B 50 [12:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 8B 9F 47 00 5D 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9D 10 00 00 F4 03 04 00 38 58 61 66 B6 04 01 00 00 B0 B7 36 F4 42 A9 9E F5 [12:31:50]CommunicateWithHost err = 0 [12:31:50]CheckOFDResponse [12:31:50]1017 (14) - 77093643461234 [12:31:50]1041 (16) - 0000000000959360 [12:31:50]1040 (4) - 4253 [12:31:50]1012 (4) - 06.06.2024 06:33 [12:31:50]1206 (1) - 0 [12:31:50]OFD Sender: Remove packet 4253 [12:31:50]ProducePacketName [12:31:50]name=ofd_packets/00004253 [12:31:50]NVStorageDeleteData [12:31:50]Write to MH i2c: 01 00 00 2F 12 41 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 07 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 07 00 2F 12 00 00 00 00 00 B0 0C 04 [12:31:50]RasterBufferAndPrint [12:31:50]line [12:31:50]line [12:31:50]line [12:31:50]line [12:31:50]line [12:31:50]written 0, free lines is 3251 [12:31:50]MH_Cut [12:31:50]Write to MH i2c: D1 01 00 36 12 01 1A [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: D1 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: D1 01 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: D1 01 00 36 12 00 19 [12:31:50]Write to MH i2c: 01 00 00 37 12 49 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]OFD Sender: No OFD packet to send [12:31:51]*** Cut start [12:31:51]*** Partial cut [12:31:51]*** CUTSNS_PIN = 1 [12:31:51]*** CUTSNS_PIN = 0 [12:31:51]*** Brake cut motor [12:31:51]Read from MH i2c: 01 [12:31:51]MH_I2C_Read... [12:31:51]*** Stop cut motor [12:31:51]*** Cut end [12:31:51]Read from MH i2c: 01 07 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: 01 07 00 37 12 00 00 00 00 00 FF 0F 5E [12:31:51]process_action close_receipt done [12:31:51]requested_data is exist [12:31:51]produce_requested_data [12:31:51]requested_item fm.sn is exist - process it [12:31:51]wFMCommunicate request_size=4 [12:31:51]MH_SAM_APDU [12:31:51]CAPDU: 80 11 00 00 [12:31:51]Write to MH i2c: E2 08 00 38 12 80 11 00 00 00 00 00 00 C4 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 [12:31:51]MH_I2C_Read... [12:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:51]Read from MH i2c: E2 17 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 17 00 38 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 17 [12:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [12:31:51]wFMCommunicate OK [12:31:51]requested_item fd.num is exist - process it [12:31:51]SAM_PROTO_GetFieldsCounters [12:31:51]wFMCommunicate request_size=4 [12:31:51]MH_SAM_APDU [12:31:51]CAPDU: 80 13 00 00 [12:31:51]Write to MH i2c: E2 08 00 39 12 80 13 00 00 00 00 00 00 C7 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 62 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 62 00 39 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9D 10 00 00 0E 04 04 00 55 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 42 [12:31:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9D 10 00 00 0E 04 04 00 55 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 [12:31:52]wFMCommunicate OK [12:31:52]SAM_PROTO_GetFieldsCounters done [12:31:52]requested_item shift.num is exist - process it [12:31:52]requested_item shift.opened is exist - process it [12:31:52]req_shift_opened [12:31:52]FM_GetShiftState [12:31:52]SAM_PROTO_GetShiftState [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 13 01 00 [12:31:52]Write to MH i2c: E2 08 00 3A 12 80 13 01 00 00 00 00 00 C9 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 0E 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 0E 00 3A 12 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 82 [12:31:52]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [12:31:52]wFMCommunicate OK [12:31:52]SAM_PROTO_GetShiftState done [12:31:52]FM_GetShiftState done [12:31:52]req_shift_opened done [12:31:52]requested_item shift.open_date is exist - process it [12:31:52]req_shift_open_date [12:31:52]req_shift_open_date done [12:31:52]produce_requested_data done [12:31:52]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4253,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [12:31:52]process_action_free close_receipt [12:31:52]json_value_free [12:31:52]json_value_free done [12:31:52]process_json_proto returns [12:31:52]Send response to host [12:31:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4253,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [12:31:52]free response buf [12:31:52]execute_script done [12:31:52]execute_script returns [12:31:52]free content buf [12:31:52]Sock 8.Close socket [12:31:52]Sock 8.Thread stoped [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:17]accept exits with 9 [12:39:17]New connection [12:39:17]New thread 3066629476 created [12:39:17]Thread 3066772836 joined [12:39:17]Waiting for new connection... [12:39:17] Sock 9.Parse request [12:39:17]Sock 9.Check first char [12:39:17]Sock 9.First char is OK [12:39:17]request: POST /json_proto HTTP/1.0 [12:39:17]Method: POST [12:39:17]URL: /json_proto [12:39:17]Method is POST - this is cgi request [12:39:17]url: /json_proto [12:39:17]query_string will be loaded in cgi processing [12:39:17]execute_cgi json_proto POST (null) [12:39:17]execute_cgi path=json_proto method=POST [12:39:17]POST find Content-Length [12:39:17]Host: 172.17.56.68:8080 [12:39:17]Content-Length: 874 [12:39:17]Content-Type: application/json [12:39:17] [12:39:17]POST finish read [12:39:17]Found Content-Length = 874 [12:39:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4506", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:17]execute_script... [12:39: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 : (3)4506", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:17]POST & json_proto [12:39:17]process_json_proto [12:39:17]json parsed OK: [12:39:17]protocol is kg_v1.0 [12:39:17]action value=close_receipt [12:39:17]process_action close_receipt [12:39:17]cmd_close_receipt [12:39:17]MH_GetDate [12:39:17]Write to MH i2c: F0 00 00 3B 12 3C [12:39:17]Write i2c OK [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: F0 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: F0 09 00 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: F0 09 00 3B 12 00 FB AD 61 66 3A 8F 60 66 43 [12:39:17]GetLastDocTimeStamp 1717677112 [12:39:17]current date 1717677563 [12:39:17]FM_GetShiftState [12:39:17]SAM_PROTO_GetShiftState [12:39:17]wFMCommunicate request_size=4 [12:39:17]MH_SAM_APDU [12:39:17]CAPDU: 80 13 01 00 [12:39:17]Write to MH i2c: E2 08 00 3C 12 80 13 01 00 00 00 00 00 CB [12:39:17]Write i2c OK [12:39:17]MH_I2C_Read... [12:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:17]Read from MH i2c: E2 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: E2 0E 00 [12:39:17]MH_I2C_Read... [12:39:17]Read from MH i2c: E2 0E 00 3C 12 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 84 [12:39:17]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [12:39:17]wFMCommunicate OK [12:39:17]SAM_PROTO_GetShiftState done [12:39:17]FM_GetShiftState done [12:39:17]opened in 1717632745 [12:39:17]opened+sec_in_day 1717719145 [12:39:17]quantity*price = 15000 [12:39:17]sum+1 = 15001 [12:39:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 29 06.06.2024 12:39 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4254 ФПД: 133223453052110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T123923&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4254&fm=133223453052110&tin=02508201610067®Number=0000000000145775&sum=16000 0 [12:39:19]StoreToDocumentArchive [12:39:19]shift 85 fd 4254 [12:39:19]save to /storage/0085/doc_00004254 [12:39:19]save last doc name /storage/0085/doc_00004254 to /storage/kkm_last_doc_name [12:39:19]save OK [12:39:19]Clear old archive folders... [12:39:19]ProcessDocumentItem done err = 0, tmpTLVsize=376 [12:39:19]tlvbuf is 019757D0 [12:39:19]SAM_PROTO_ClearQueue [12:39:19]wFMCommunicate request_size=4 [12:39:19]MH_SAM_APDU [12:39:19]CAPDU: 80 09 00 00 [12:39:19]Write to MH i2c: E2 08 00 49 12 80 09 00 00 00 00 00 00 CD [12:39:19]Write i2c OK [12:39:19]MH_I2C_Read... [12:39:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:19]Read from MH i2c: E2 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 03 00 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 03 00 49 12 00 90 00 CF [12:39:19]RAPDU: 90 00 [12:39:19]wFMCommunicate OK [12:39:19]SAM_PROTO_ClearQueue done [12:39:19]KKMCreateOFDPacket [12:39:19]OFDProtocolAddRootSTLVToBuf [12:39:19]FM_MakeSignedData [12:39:19]FM_MakeSignedData [12:39:19]SAM_PROTO_SignData [12:39:19]wFMCommunicate request_size=4 [12:39:19]MH_SAM_APDU [12:39:19]CAPDU: 80 0D 01 02 [12:39:19]Write to MH i2c: E2 08 00 4A 12 80 0D 01 02 00 00 00 00 D5 [12:39:19]Write i2c OK [12:39:19]MH_I2C_Read... [12:39:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:19]Read from MH i2c: E2 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 03 00 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 03 00 4A 12 00 90 00 D0 [12:39:19]RAPDU: 90 00 [12:39:19]wFMCommunicate OK [12:39:19]wFMCommunicate request_size=255 [12:39:19]MH_SAM_APDU [12:39:19]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 [12:39:19]Write to MH i2c: E2 02 01 4B 12 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 00 00 6A [12:39:19]Write i2c OK [12:39:19]MH_I2C_Read... [12:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:19]Read from MH i2c: E2 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 03 00 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 03 00 4B 12 00 90 00 D1 [12:39:19]RAPDU: 90 00 [12:39:19]wFMCommunicate OK [12:39:19]wFMCommunicate request_size=135 [12:39:19]MH_SAM_APDU [12:39:19]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 FB AD 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9E 10 00 00 35 04 06 00 79 2A 80 98 4C CE [12:39:19]Write to MH i2c: E2 8A 00 4C 12 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 FB AD 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9E 10 00 00 35 04 06 00 79 2A 80 98 4C CE 00 00 E7 [12:39:19]Write i2c OK [12:39:19]MH_I2C_Read... [12:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:19]Read from MH i2c: E2 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 03 00 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 03 00 4C 12 00 90 00 D2 [12:39:19]RAPDU: 90 00 [12:39:19]wFMCommunicate OK [12:39:19]wFMCommunicate request_size=4 [12:39:19]MH_SAM_APDU [12:39:19]CAPDU: 80 0D 03 02 [12:39:19]Write to MH i2c: E2 08 00 4D 12 80 0D 03 02 00 00 00 00 DA [12:39:19]Write i2c OK [12:39:19]MH_I2C_Read... [12:39:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:19]Read from MH i2c: E2 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 0B 00 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 0B 00 4D 12 00 7B 01 CE AE A3 F4 7F CA 90 00 B3 [12:39:19]RAPDU: 7B 01 CE AE A3 F4 7F CA 90 00 [12:39:19]wFMCommunicate OK [12:39:19]SAM_PROTO_SignData done [12:39:19]FM_MakeSignedData done [12:39:19]CreateOFDProtocolMessage [12:39:19]wFMCommunicate request_size=4 [12:39:19]MH_SAM_APDU [12:39:19]CAPDU: 80 11 00 00 [12:39:19]Write to MH i2c: E2 08 00 4E 12 80 11 00 00 00 00 00 00 DA [12:39:19]Write i2c OK [12:39:19]MH_I2C_Read... [12:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:19]Read from MH i2c: E2 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 17 00 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: E2 17 00 4E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 2D [12:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [12:39:19]wFMCommunicate OK [12:39:19]CreateOFDProtocolMessage done [12:39:19]OFDSenderStorePacket 4254 [12:39:19]StoreOFDPacket docnum=4254 [12:39:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 8C 01 00 00 5E B4 84 01 86 F6 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 FB AD 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9E 10 00 00 35 04 06 00 79 2A 80 98 4C CE 7B 01 CE AE A3 F4 7F CA [12:39:19]CheckFolder [12:39:19]dirname=/storage/ofd_packets [12:39:19]CheckFolder done [12:39:19]ProducePacketName [12:39:19]name=ofd_packets/00004254 [12:39:19]NVStorageSaveData ofd_packets/00004254 [12:39:19]File name is /storage/ofd_packets/00004254 [12:39:19]Write 426 bytes [12:39:19]NVStorageSaveData done [12:39:19]OFDSenderStorePacket done [12:39:19]KKMCreateOFDPacket done [12:39:19]NVStorageSaveData kkm_last_timestamp [12:39:19]File name is /storage/kkm_last_timestamp [12:39:19]Write 4 bytes [12:39:19]NVStorageSaveData done [12:39:19]ExternCall_PrintAddStr [12:39:19]wPrintStart [12:39:19]Write to MH i2c: 01 00 00 4F 12 61 [12:39:19]Write i2c OK [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: 01 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: 01 07 00 [12:39:19]MH_I2C_Read... [12:39:19]Read from MH i2c: 01 07 00 4F 12 00 00 00 00 00 FF 0F 76 [12:39:19]RasterBufferAndPrint [12:39:19]line Счет N : (3)4506 [12:39:19]line ИНН: 02508201610067 [12:39:19]line Контрольно-Кассовый Чек [12:39:19]line ПРОДАЖА [12:39:19]line Товар: 48744317 [12:39:20]line Сигареты Camel Yellow [12:39:20]line 1.000 * 150.00 [12:39:20]line = 150.00 [12:39:20]line НДС 12% НСП 1% [12:39:20]line > о реализуемом товаре [12:39:20]line Товар: 46226617 [12:39:20]line Mentos ПВ Нежная Мята 6*100*2г [12:39:20]line 1.000 * 10.00 [12:39:20]line = 10.00 [12:39:20]line НДС 12% НСП 1% [12:39:20]line > о реализуемом товаре [12:39:20]line ИТОГО: 160.00 [12:39:20]line НСП 1% : 1.42 [12:39:20]line НДС 12% : 16.99 [12:39:20]line Наличными: 160.00 [12:39:20]line Безнал.: 0.00 [12:39:20]line Место: АЗС № 116 "Партнер Нефть" [12:39:20]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [12:39:20]line СНО: Общий режим [12:39:20]line Чек 29 06.06.2024 12:39 [12:39:20]line Смена: 85 ФФД: 1.0 [12:39:20]line ЗНМ: 0300000233 [12:39:20]line РНМ: 0000000000145775 [12:39:20]line Версия ККМ: v1.0 [12:39:20]line ФМ: 0000000000959360 [12:39:20]line ФД: 4254 [12:39:20]line ФПД: 133223453052110 [12:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T123923&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4254&fm=133223453052110&tin=02508201610067®Number=0000000000145775&sum=16000 [12:39:20]line 0 [12:39:20]OFD Sender: Processing packet 4254 [packets to send 2, broken 1] [12:39:20]ProducePacketName [12:39:20]name=ofd_packets/00004254 [12:39:20]OFD Sender: To server: pG, [12:39:20]CommunicateWithHost lk.salyk.kg:30040 [12:39:20]ConnectInit lk.salyk.kg [12:39:20]written 0, free lines is 4095 [12:39:20]Connected sock=10 [12:39:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 8C 01 00 00 5E B4 84 01 86 F6 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 FB AD 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9E 10 00 00 35 04 06 00 79 2A 80 98 4C CE 7B 01 CE AE A3 F4 7F CA [12:39:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 8E E2 47 00 43 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 39 35 39 33 36 30 10 04 04 00 9E 10 00 00 F4 03 04 00 FA 59 61 66 B6 04 01 00 00 D3 0F 1E 63 CC 0D FB D8 [12:39:20]CommunicateWithHost err = 0 [12:39:20]CheckOFDResponse [12:39:20]1017 (14) - 77093643461234 [12:39:20]1041 (16) - 0000000000959360 [12:39:20]1040 (4) - 4254 [12:39:20]1012 (4) - 06.06.2024 06:40 [12:39:20]1206 (1) - 0 [12:39:20]OFD Sender: Remove packet 4254 [12:39:20]ProducePacketName [12:39:20]name=ofd_packets/00004254 [12:39:20]NVStorageDeleteData [12:39:20]Write to MH i2c: 01 00 00 7E 12 90 [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: 01 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: 01 07 00 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: 01 07 00 7E 12 00 00 00 00 00 4E 0C F1 [12:39:20]RasterBufferAndPrint [12:39:20]line [12:39:20]line [12:39:20]line [12:39:20]line [12:39:20]line [12:39:20]written 0, free lines is 3157 [12:39:20]MH_Cut [12:39:20]Write to MH i2c: D1 01 00 85 12 01 69 [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: D1 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: D1 01 00 [12:39:20]MH_I2C_Read... [12:39:20]Read from MH i2c: D1 01 00 85 12 00 68 [12:39:20]Write to MH i2c: 01 00 00 86 12 98 [12:39:20]Write i2c OK [12:39:20]MH_I2C_Read... [12:39:20]OFD Sender: No OFD packet to send [12:39:21]*** Cut start [12:39:21]*** Partial cut [12:39:21]*** CUTSNS_PIN = 1 [12:39:21]*** CUTSNS_PIN = 0 [12:39:21]*** Brake cut motor [12:39:22]Read from MH i2c: 01 [12:39:22]MH_I2C_Read... [12:39:22]*** Stop cut motor [12:39:22]*** Cut end [12:39:22]Read from MH i2c: 01 07 00 [12:39:22]MH_I2C_Read... [12:39:22]Read from MH i2c: 01 07 00 86 12 00 00 00 00 00 FF 0F AD [12:39:22]process_action close_receipt done [12:39:22]requested_data is exist [12:39:22]produce_requested_data [12:39:22]requested_item fm.sn is exist - process it [12:39:22]wFMCommunicate request_size=4 [12:39:22]MH_SAM_APDU [12:39:22]CAPDU: 80 11 00 00 [12:39:22]Write to MH i2c: E2 08 00 87 12 80 11 00 00 00 00 00 00 13 [12:39:22]Write i2c OK [12:39:22]MH_I2C_Read... [12:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:22]Read from MH i2c: E2 [12:39:22]MH_I2C_Read... [12:39:22]Read from MH i2c: E2 17 00 [12:39:22]MH_I2C_Read... [12:39:22]Read from MH i2c: E2 17 00 87 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 66 [12:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [12:39:22]wFMCommunicate OK [12:39:22]requested_item fd.num is exist - process it [12:39:22]SAM_PROTO_GetFieldsCounters [12:39:22]wFMCommunicate request_size=4 [12:39:22]MH_SAM_APDU [12:39:22]CAPDU: 80 13 00 00 [12:39:22]Write to MH i2c: E2 08 00 88 12 80 13 00 00 00 00 00 00 16 [12:39:22]Write i2c OK [12:39:22]MH_I2C_Read... [12:39:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:22]Read from MH i2c: E2 [12:39:22]MH_I2C_Read... [12:39:22]Read from MH i2c: E2 62 00 [12:39:22]MH_I2C_Read... [12:39:22]Read from MH i2c: E2 62 00 88 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9E 10 00 00 0E 04 04 00 55 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 95 [12:39:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9E 10 00 00 0E 04 04 00 55 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:39:22]wFMCommunicate OK [12:39:22]SAM_PROTO_GetFieldsCounters done [12:39:22]requested_item shift.num is exist - process it [12:39:22]requested_item shift.opened is exist - process it [12:39:22]req_shift_opened [12:39:22]FM_GetShiftState [12:39:22]SAM_PROTO_GetShiftState [12:39:22]wFMCommunicate request_size=4 [12:39:22]MH_SAM_APDU [12:39:22]CAPDU: 80 13 01 00 [12:39:22]Write to MH i2c: E2 08 00 89 12 80 13 01 00 00 00 00 00 18 [12:39:22]Write i2c OK [12:39:22]MH_I2C_Read... [12:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:22]Read from MH i2c: E2 [12:39:22]MH_I2C_Read... [12:39:22]Read from MH i2c: E2 0E 00 [12:39:22]MH_I2C_Read... [12:39:22]Read from MH i2c: E2 0E 00 89 12 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 D1 [12:39:22]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [12:39:22]wFMCommunicate OK [12:39:22]SAM_PROTO_GetShiftState done [12:39:22]FM_GetShiftState done [12:39:22]req_shift_opened done [12:39:22]requested_item shift.open_date is exist - process it [12:39:22]req_shift_open_date [12:39:22]req_shift_open_date done [12:39:22]produce_requested_data done [12:39:22]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4254,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [12:39:22]process_action_free close_receipt [12:39:22]json_value_free [12:39:22]json_value_free done [12:39:22]process_json_proto returns [12:39:22]Send response to host [12:39:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4254,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [12:39:22]free response buf [12:39:22]execute_script done [12:39:22]execute_script returns [12:39:22]free content buf [12:39:22]Sock 9.Close socket [12:39:22]Sock 9.Thread stoped [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:49]accept exits with 8 [12:54:49]New connection [12:54:49]New thread 3066772836 created [12:54:49]Thread 3066629476 joined [12:54:49]Waiting for new connection... [12:54:49] Sock 8.Parse request [12:54:49]Sock 8.Check first char [12:54:49]Sock 8.First char is OK [12:54:49]request: POST /json_proto HTTP/1.0 [12:54:49]Method: POST [12:54:49]URL: /json_proto [12:54:49]Method is POST - this is cgi request [12:54:49]url: /json_proto [12:54:49]query_string will be loaded in cgi processing [12:54:49]execute_cgi json_proto POST (null) [12:54:49]execute_cgi path=json_proto method=POST [12:54:49]POST find Content-Length [12:54:49]Host: 172.17.56.68:8080 [12:54:49]Content-Length: 1436 [12:54:49]Content-Type: application/json [12:54:49] [12:54:49]POST finish read [12:54:49]Found Content-Length = 1436 [12:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4507", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:49]execute_script... [12:54: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 : (3)4507", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:49]POST & json_proto [12:54:49]process_json_proto [12:54:49]json parsed OK: [12:54:49]protocol is kg_v1.0 [12:54:49]action value=close_receipt [12:54:49]process_action close_receipt [12:54:49]cmd_close_receipt [12:54:49]MH_GetDate [12:54:49]Write to MH i2c: F0 00 00 8A 12 8B [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: F0 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: F0 09 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: F0 09 00 8A 12 00 9E B1 61 66 3A 8F 60 66 39 [12:54:49]GetLastDocTimeStamp 1717677563 [12:54:49]current date 1717678494 [12:54:49]FM_GetShiftState [12:54:49]SAM_PROTO_GetShiftState [12:54:49]wFMCommunicate request_size=4 [12:54:49]MH_SAM_APDU [12:54:49]CAPDU: 80 13 01 00 [12:54:49]Write to MH i2c: E2 08 00 8B 12 80 13 01 00 00 00 00 00 1A [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:49]Read from MH i2c: E2 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 0E 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 0E 00 8B 12 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 D3 [12:54:49]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [12:54:49]wFMCommunicate OK [12:54:49]SAM_PROTO_GetShiftState done [12:54:49]FM_GetShiftState done [12:54:49]opened in 1717632745 [12:54:49]opened+sec_in_day 1717719145 [12:54:49]quantity*price = 9500 [12:54:49]sum+1 = 9501 [12:54:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159381178 Шок Батончик Баунти Трио 82,5г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010070 Чай хол Let`s Go! чер персик ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 279.00 НСП 1% : 2.47 НДС 12% : 29.63 Наличными: 0.00 Безнал.: 279.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 30 06.06.2024 12:54 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: О! деньги ФМ: 0000000000959360 ФД: 4255 ФПД: 218418081120762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T125454&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4255&fm=218418081120762&tin=02508201610067®Number=0000000000145775&sum=27900 0 [12:54:50]StoreToDocumentArchive [12:54:50]shift 85 fd 4255 [12:54:50]save to /storage/0085/doc_00004255 [12:54:50]save last doc name /storage/0085/doc_00004255 to /storage/kkm_last_doc_name [12:54:50]save OK [12:54:50]Clear old archive folders... [12:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=546 [12:54:50]tlvbuf is 019AD810 [12:54:50]SAM_PROTO_ClearQueue [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 09 00 00 [12:54:50]Write to MH i2c: E2 08 00 98 12 80 09 00 00 00 00 00 00 1C [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 98 12 00 90 00 1E [12:54:50]RAPDU: 90 00 [12:54:50]wFMCommunicate OK [12:54:50]SAM_PROTO_ClearQueue done [12:54:50]KKMCreateOFDPacket [12:54:50]OFDProtocolAddRootSTLVToBuf [12:54:50]FM_MakeSignedData [12:54:50]FM_MakeSignedData [12:54:50]SAM_PROTO_SignData [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 0D 01 02 [12:54:50]Write to MH i2c: E2 08 00 99 12 80 0D 01 02 00 00 00 00 24 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 99 12 00 90 00 1F [12:54:50]RAPDU: 90 00 [12:54:50]wFMCommunicate OK [12:54:50]wFMCommunicate request_size=255 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 0D 02 02 FA 03 00 22 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [12:54:50]Write to MH i2c: E2 02 01 9A 12 80 0D 02 02 FA 00 03 00 22 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 D3 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 9A 12 00 90 00 20 [12:54:50]RAPDU: 90 00 [12:54:50]wFMCommunicate OK [12:54:50]wFMCommunicate request_size=255 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9E B1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [12:54:50]Write to MH i2c: E2 02 01 9B 12 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9E B1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 F0 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 03 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 03 00 9B 12 00 90 00 21 [12:54:51]RAPDU: 90 00 [12:54:51]wFMCommunicate OK [12:54:51]wFMCommunicate request_size=55 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9F 10 00 00 35 04 06 00 C6 A6 6C 23 41 FA [12:54:51]Write to MH i2c: E2 3A 00 9C 12 80 0D 02 02 32 00 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9F 10 00 00 35 04 06 00 C6 A6 6C 23 41 FA 00 00 6A [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 03 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 03 00 9C 12 00 90 00 22 [12:54:51]RAPDU: 90 00 [12:54:51]wFMCommunicate OK [12:54:51]wFMCommunicate request_size=4 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 0D 03 02 [12:54:51]Write to MH i2c: E2 08 00 9D 12 80 0D 03 02 00 00 00 00 2A [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 0B 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 0B 00 9D 12 00 3F 53 42 78 89 3F 09 70 90 00 B8 [12:54:51]RAPDU: 3F 53 42 78 89 3F 09 70 90 00 [12:54:51]wFMCommunicate OK [12:54:51]SAM_PROTO_SignData done [12:54:51]FM_MakeSignedData done [12:54:51]CreateOFDProtocolMessage [12:54:51]wFMCommunicate request_size=4 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 11 00 00 [12:54:51]Write to MH i2c: E2 08 00 9E 12 80 11 00 00 00 00 00 00 2A [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 17 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 17 00 9E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 7D [12:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [12:54:51]wFMCommunicate OK [12:54:51]CreateOFDProtocolMessage done [12:54:51]OFDSenderStorePacket 4255 [12:54:51]StoreOFDPacket docnum=4255 [12:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 36 02 00 00 8B 6C 2E 02 83 71 5A 03 01 00 03 00 22 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9E B1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9F 10 00 00 35 04 06 00 C6 A6 6C 23 41 FA 3F 53 42 78 89 3F 09 70 [12:54:51]CheckFolder [12:54:51]dirname=/storage/ofd_packets [12:54:51]CheckFolder done [12:54:51]ProducePacketName [12:54:51]name=ofd_packets/00004255 [12:54:51]NVStorageSaveData ofd_packets/00004255 [12:54:51]File name is /storage/ofd_packets/00004255 [12:54:51]Write 596 bytes [12:54:51]NVStorageSaveData done [12:54:51]OFDSenderStorePacket done [12:54:51]KKMCreateOFDPacket done [12:54:51]NVStorageSaveData kkm_last_timestamp [12:54:51]File name is /storage/kkm_last_timestamp [12:54:51]Write 4 bytes [12:54:51]NVStorageSaveData done [12:54:51]ExternCall_PrintAddStr [12:54:51]wPrintStart [12:54:51]Write to MH i2c: 01 00 00 9F 12 B1 [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: 01 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: 01 07 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: 01 07 00 9F 12 00 00 00 00 00 FF 0F C6 [12:54:51]RasterBufferAndPrint [12:54:51]line Счет N : (3)4507 [12:54:51]line ИНН: 02508201610067 [12:54:51]line Контрольно-Кассовый Чек [12:54:51]line ПРОДАЖА [12:54:51]line Товар: 4700000480050 [12:54:51]line Напиток Nitro Energy эн green ж/б 0,45л [12:54:51]line 1.000 * 95.00 [12:54:51]line = 95.00 [12:54:51]line НДС 12% НСП 1% [12:54:51]line > о реализуемом товаре [12:54:51]line Товар: 5000159381178 [12:54:51]line Шок Батончик Баунти Трио 82,5г [12:54:51]line 1.000 * 89.00 [12:54:51]line = 89.00 [12:54:51]line НДС 12% НСП 1% [12:54:51]line > о реализуемом товаре [12:54:51]line Товар: 4700003010070 [12:54:51]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [12:54:51]line 1.000 * 95.00 [12:54:51]line = 95.00 [12:54:51]line НДС 12% НСП 1% [12:54:51]line > о реализуемом товаре [12:54:51]line ИТОГО: 279.00 [12:54:51]line НСП 1% : 2.47 [12:54:51]line НДС 12% : 29.63 [12:54:51]line Наличными: 0.00 [12:54:51]line Безнал.: 279.00 [12:54:51]line Место: АЗС № 116 "Партнер Нефть" [12:54:51]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [12:54:51]line СНО: Общий режим [12:54:51]line Чек 30 06.06.2024 12:54 [12:54:51]line Смена: 85 ФФД: 1.0 [12:54:51]line ЗНМ: 0300000233 [12:54:51]line РНМ: 0000000000145775 [12:54:51]line Версия ККМ: v1.0 [12:54:51]line Платежная система: О! деньги [12:54:51]line ФМ: 0000000000959360 [12:54:51]line ФД: 4255 [12:54:51]line ФПД: 218418081120762 [12:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T125454&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4255&fm=218418081120762&tin=02508201610067®Number=0000000000145775&sum=27900 [12:54:51]line 0 [12:54:51]OFD Sender: Processing packet 4255 [packets to send 2, broken 1] [12:54:51]ProducePacketName [12:54:51]name=ofd_packets/00004255 [12:54:51]OFD Sender: To server: pG, [12:54:51]CommunicateWithHost lk.salyk.kg:30040 [12:54:51]ConnectInit lk.salyk.kg [12:54:51]written 0, free lines is 4095 [12:54:51]Connected sock=10 [12:54:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 36 02 00 00 8B 6C 2E 02 83 71 5A 03 01 00 03 00 22 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9E B1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9F 10 00 00 35 04 06 00 C6 A6 6C 23 41 FA 3F 53 42 78 89 3F 09 70 [12:54:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 95 BD 47 00 76 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 9F 10 00 00 F4 03 04 00 9E 5D 61 66 B6 04 01 00 00 F8 84 59 4D 79 40 25 37 [12:54:52]CommunicateWithHost err = 0 [12:54:52]CheckOFDResponse [12:54:52]1017 (14) - 77093643461234 [12:54:52]1041 (16) - 0000000000959360 [12:54:52]1040 (4) - 4255 [12:54:52]1012 (4) - 06.06.2024 06:56 [12:54:52]1206 (1) - 0 [12:54:52]OFD Sender: Remove packet 4255 [12:54:52]ProducePacketName [12:54:52]name=ofd_packets/00004255 [12:54:52]NVStorageDeleteData [12:54:52]Write to MH i2c: 01 00 00 D8 12 EA [12:54:52]Write i2c OK [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: 01 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: 01 07 00 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: 01 07 00 D8 12 00 00 00 00 00 8D 0B 89 [12:54:52]RasterBufferAndPrint [12:54:52]line [12:54:52]line [12:54:52]line [12:54:52]line [12:54:52]line [12:54:52]written 0, free lines is 2962 [12:54:52]MH_Cut [12:54:52]Write to MH i2c: D1 01 00 DF 12 01 C3 [12:54:52]Write i2c OK [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: D1 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: D1 01 00 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: D1 01 00 DF 12 00 C2 [12:54:52]Write to MH i2c: 01 00 00 E0 12 F2 [12:54:52]Write i2c OK [12:54:52]MH_I2C_Read... [12:54:52]OFD Sender: No OFD packet to send [12:54:53]*** Cut start [12:54:53]*** Partial cut [12:54:53]*** CUTSNS_PIN = 1 [12:54:53]*** CUTSNS_PIN = 0 [12:54:53]*** Brake cut motor [12:54:54]Read from MH i2c: 01 [12:54:54]MH_I2C_Read... [12:54:54]*** Stop cut motor [12:54:54]*** Cut end [12:54:54]Read from MH i2c: 01 07 00 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: 01 07 00 E0 12 00 00 00 00 00 FF 0F 07 [12:54:54]process_action close_receipt done [12:54:54]requested_data is exist [12:54:54]produce_requested_data [12:54:54]requested_item fm.sn is exist - process it [12:54:54]wFMCommunicate request_size=4 [12:54:54]MH_SAM_APDU [12:54:54]CAPDU: 80 11 00 00 [12:54:54]Write to MH i2c: E2 08 00 E1 12 80 11 00 00 00 00 00 00 6D [12:54:54]Write i2c OK [12:54:54]MH_I2C_Read... [12:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:54]Read from MH i2c: E2 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: E2 17 00 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: E2 17 00 E1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 C0 [12:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [12:54:54]wFMCommunicate OK [12:54:54]requested_item fd.num is exist - process it [12:54:54]SAM_PROTO_GetFieldsCounters [12:54:54]wFMCommunicate request_size=4 [12:54:54]MH_SAM_APDU [12:54:54]CAPDU: 80 13 00 00 [12:54:54]Write to MH i2c: E2 08 00 E2 12 80 13 00 00 00 00 00 00 70 [12:54:54]Write i2c OK [12:54:54]MH_I2C_Read... [12:54:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:54]Read from MH i2c: E2 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: E2 62 00 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: E2 62 00 E2 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9F 10 00 00 0E 04 04 00 55 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 F3 [12:54:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 9F 10 00 00 0E 04 04 00 55 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 [12:54:54]wFMCommunicate OK [12:54:54]SAM_PROTO_GetFieldsCounters done [12:54:54]requested_item shift.num is exist - process it [12:54:54]requested_item shift.opened is exist - process it [12:54:54]req_shift_opened [12:54:54]FM_GetShiftState [12:54:54]SAM_PROTO_GetShiftState [12:54:54]wFMCommunicate request_size=4 [12:54:54]MH_SAM_APDU [12:54:54]CAPDU: 80 13 01 00 [12:54:54]Write to MH i2c: E2 08 00 E3 12 80 13 01 00 00 00 00 00 72 [12:54:54]Write i2c OK [12:54:54]MH_I2C_Read... [12:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:54]Read from MH i2c: E2 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: E2 0E 00 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: E2 0E 00 E3 12 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 2B [12:54:54]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [12:54:54]wFMCommunicate OK [12:54:54]SAM_PROTO_GetShiftState done [12:54:54]FM_GetShiftState done [12:54:54]req_shift_opened done [12:54:54]requested_item shift.open_date is exist - process it [12:54:54]req_shift_open_date [12:54:54]req_shift_open_date done [12:54:54]produce_requested_data done [12:54:54]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4255,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [12:54:54]process_action_free close_receipt [12:54:54]json_value_free [12:54:54]json_value_free done [12:54:54]process_json_proto returns [12:54:54]Send response to host [12:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4255,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [12:54:54]free response buf [12:54:54]execute_script done [12:54:54]execute_script returns [12:54:54]free content buf [12:54:54]Sock 8.Close socket [12:54:54]Sock 8.Thread stoped [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:23]accept exits with 9 [13:01:23]New connection [13:01:23]New thread 3066629476 created [13:01:23]Thread 3066772836 joined [13:01:23]Waiting for new connection... [13:01:23] Sock 9.Parse request [13:01:23]Sock 9.Check first char [13:01:23]Sock 9.First char is OK [13:01:23]request: POST /json_proto HTTP/1.0 [13:01:23]Method: POST [13:01:23]URL: /json_proto [13:01:23]Method is POST - this is cgi request [13:01:23]url: /json_proto [13:01:23]query_string will be loaded in cgi processing [13:01:23]execute_cgi json_proto POST (null) [13:01:23]execute_cgi path=json_proto method=POST [13:01:23]POST find Content-Length [13:01:23]Host: 172.17.56.68:8080 [13:01:23]Content-Length: 893 [13:01:23]Content-Type: application/json [13:01:23] [13:01:23]POST finish read [13:01:23]Found Content-Length = 893 [13:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4508", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:23]execute_script... [13:01: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 : (3)4508", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:23]POST & json_proto [13:01:23]process_json_proto [13:01:23]json parsed OK: [13:01:23]protocol is kg_v1.0 [13:01:23]action value=close_receipt [13:01:23]process_action close_receipt [13:01:23]cmd_close_receipt [13:01:23]MH_GetDate [13:01:23]Write to MH i2c: F0 00 00 E4 12 E5 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: F0 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: F0 09 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: F0 09 00 E4 12 00 29 B3 61 66 3A 8F 60 66 20 [13:01:23]GetLastDocTimeStamp 1717678494 [13:01:23]current date 1717678889 [13:01:23]FM_GetShiftState [13:01:23]SAM_PROTO_GetShiftState [13:01:23]wFMCommunicate request_size=4 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 13 01 00 [13:01:23]Write to MH i2c: E2 08 00 E5 12 80 13 01 00 00 00 00 00 74 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0E 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0E 00 E5 12 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 2D [13:01:23]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:01:23]wFMCommunicate OK [13:01:23]SAM_PROTO_GetShiftState done [13:01:23]FM_GetShiftState done [13:01:23]opened in 1717632745 [13:01:23]opened+sec_in_day 1717719145 [13:01:23]quantity*price = 14000 [13:01:23]sum+1 = 14001 [13:01:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 31 06.06.2024 13:01 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4256 ФПД: 9299685233391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T130129&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4256&fm=9299685233391&tin=02508201610067®Number=0000000000145775&sum=22500 0 [13:01:25]StoreToDocumentArchive [13:01:25]shift 85 fd 4256 [13:01:25]save to /storage/0085/doc_00004256 [13:01:25]save last doc name /storage/0085/doc_00004256 to /storage/kkm_last_doc_name [13:01:25]save OK [13:01:25]Clear old archive folders... [13:01:25]ProcessDocumentItem done err = 0, tmpTLVsize=391 [13:01:25]tlvbuf is B6E7CB00 [13:01:25]SAM_PROTO_ClearQueue [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 09 00 00 [13:01:25]Write to MH i2c: E2 08 00 F2 12 80 09 00 00 00 00 00 00 76 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [13:01:25]RAPDU: 90 00 [13:01:25]wFMCommunicate OK [13:01:25]SAM_PROTO_ClearQueue done [13:01:25]KKMCreateOFDPacket [13:01:25]OFDProtocolAddRootSTLVToBuf [13:01:25]FM_MakeSignedData [13:01:25]FM_MakeSignedData [13:01:25]SAM_PROTO_SignData [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 0D 01 02 [13:01:25]Write to MH i2c: E2 08 00 F3 12 80 0D 01 02 00 00 00 00 7E [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 F3 12 00 90 00 79 [13:01:25]RAPDU: 90 00 [13:01:25]wFMCommunicate OK [13:01:25]wFMCommunicate request_size=255 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [13:01:25]Write to MH i2c: E2 02 01 F4 12 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 20 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 F4 12 00 90 00 7A [13:01:25]RAPDU: 90 00 [13:01:25]wFMCommunicate OK [13:01:25]wFMCommunicate request_size=150 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 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 29 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A0 10 00 00 35 04 06 00 08 75 40 6F 52 EF [13:01:25]Write to MH i2c: E2 99 00 F5 12 80 0D 02 02 91 00 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 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 29 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A0 10 00 00 35 04 06 00 08 75 40 6F 52 EF 00 00 6B [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 F5 12 00 90 00 7B [13:01:25]RAPDU: 90 00 [13:01:25]wFMCommunicate OK [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 0D 03 02 [13:01:25]Write to MH i2c: E2 08 00 F6 12 80 0D 03 02 00 00 00 00 83 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0B 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0B 00 F6 12 00 86 22 8A CE 11 14 B9 52 90 00 B4 [13:01:25]RAPDU: 86 22 8A CE 11 14 B9 52 90 00 [13:01:25]wFMCommunicate OK [13:01:25]SAM_PROTO_SignData done [13:01:25]FM_MakeSignedData done [13:01:25]CreateOFDProtocolMessage [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 11 00 00 [13:01:25]Write to MH i2c: E2 08 00 F7 12 80 11 00 00 00 00 00 00 83 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 F7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 D6 [13:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:01:25]wFMCommunicate OK [13:01:25]CreateOFDProtocolMessage done [13:01:25]OFDSenderStorePacket 4256 [13:01:25]StoreOFDPacket docnum=4256 [13:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 9B 01 00 00 D8 86 93 01 C8 16 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 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 29 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A0 10 00 00 35 04 06 00 08 75 40 6F 52 EF 86 22 8A CE 11 14 B9 52 [13:01:25]CheckFolder [13:01:25]dirname=/storage/ofd_packets [13:01:25]CheckFolder done [13:01:25]ProducePacketName [13:01:25]name=ofd_packets/00004256 [13:01:25]NVStorageSaveData ofd_packets/00004256 [13:01:25]File name is /storage/ofd_packets/00004256 [13:01:25]Write 441 bytes [13:01:25]NVStorageSaveData done [13:01:25]OFDSenderStorePacket done [13:01:25]KKMCreateOFDPacket done [13:01:25]NVStorageSaveData kkm_last_timestamp [13:01:25]File name is /storage/kkm_last_timestamp [13:01:25]Write 4 bytes [13:01:25]NVStorageSaveData done [13:01:25]ExternCall_PrintAddStr [13:01:25]wPrintStart [13:01:25]Write to MH i2c: 01 00 00 F8 12 0A [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 07 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 07 00 F8 12 00 00 00 00 00 FF 0F 1F [13:01:26]RasterBufferAndPrint [13:01:26]line Счет N : (3)4508 [13:01:26]line ИНН: 02508201610067 [13:01:26]line Контрольно-Кассовый Чек [13:01:26]line ПРОДАЖА [13:01:26]line Товар: 48747059 [13:01:26]line Сигареты Winston Legend Blue [13:01:26]line 1.000 * 140.00 [13:01:26]line = 140.00 [13:01:26]line НДС 12% НСП 1% [13:01:26]line > о реализуемом товаре [13:01:26]line Товар: 4700000481453 [13:01:26]line Напиток энерг Nitro Max 0,45 ж/б [13:01:26]line 1.000 * 85.00 [13:01:26]line = 85.00 [13:01:26]line НДС 12% НСП 1% [13:01:26]line > о реализуемом товаре [13:01:26]line ИТОГО: 225.00 [13:01:26]line НСП 1% : 1.99 [13:01:26]line НДС 12% : 23.90 [13:01:26]line Наличными: 225.00 [13:01:26]line Безнал.: 0.00 [13:01:26]line Место: АЗС № 116 "Партнер Нефть" [13:01:26]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [13:01:26]line СНО: Общий режим [13:01:26]line Чек 31 06.06.2024 13:01 [13:01:26]line Смена: 85 ФФД: 1.0 [13:01:26]line ЗНМ: 0300000233 [13:01:26]line РНМ: 0000000000145775 [13:01:26]line Версия ККМ: v1.0 [13:01:26]line ФМ: 0000000000959360 [13:01:26]line ФД: 4256 [13:01:26]line ФПД: 9299685233391 [13:01:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T130129&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4256&fm=9299685233391&tin=02508201610067®Number=0000000000145775&sum=22500 [13:01:26]OFD Sender: Processing packet 4256 [packets to send 2, broken 1] [13:01:26]ProducePacketName [13:01:26]name=ofd_packets/00004256 [13:01:26]OFD Sender: To server: pG, [13:01:26]CommunicateWithHost lk.salyk.kg:30040 [13:01:26]ConnectInit lk.salyk.kg [13:01:26]line 0 [13:01:26]written 0, free lines is 4095 [13:01:26]Connected sock=10 [13:01:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 9B 01 00 00 D8 86 93 01 C8 16 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 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 29 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A0 10 00 00 35 04 06 00 08 75 40 6F 52 EF 86 22 8A CE 11 14 B9 52 [13:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 E3 BF 47 00 F0 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A0 10 00 00 F4 03 04 00 28 5F 61 66 B6 04 01 00 00 8A BD 4E BF DD 7B 59 ED [13:01:26]CommunicateWithHost err = 0 [13:01:26]CheckOFDResponse [13:01:26]1017 (14) - 77093643461234 [13:01:26]1041 (16) - 0000000000959360 [13:01:26]1040 (4) - 4256 [13:01:26]1012 (4) - 06.06.2024 07:03 [13:01:26]1206 (1) - 0 [13:01:26]OFD Sender: Remove packet 4256 [13:01:26]ProducePacketName [13:01:26]name=ofd_packets/00004256 [13:01:26]NVStorageDeleteData [13:01:26]Write to MH i2c: 01 00 00 28 13 3B [13:01:26]Write i2c OK [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: 01 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: 01 07 00 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: 01 07 00 28 13 00 00 00 00 00 23 0C 71 [13:01:26]RasterBufferAndPrint [13:01:26]line [13:01:26]line [13:01:26]line [13:01:26]line [13:01:26]line [13:01:26]written 0, free lines is 3111 [13:01:26]MH_Cut [13:01:26]Write to MH i2c: D1 01 00 2F 13 01 14 [13:01:26]Write i2c OK [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: D1 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: D1 01 00 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: D1 01 00 2F 13 00 13 [13:01:26]Write to MH i2c: 01 00 00 30 13 43 [13:01:26]Write i2c OK [13:01:26]MH_I2C_Read... [13:01:26]OFD Sender: No OFD packet to send [13:01:27]*** Cut start [13:01:27]*** Partial cut [13:01:27]*** CUTSNS_PIN = 1 [13:01:27]*** CUTSNS_PIN = 0 [13:01:27]*** Brake cut motor [13:01:28]Read from MH i2c: 01 [13:01:28]MH_I2C_Read... [13:01:28]*** Stop cut motor [13:01:28]*** Cut end [13:01:28]Read from MH i2c: 01 07 00 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: 01 07 00 30 13 00 00 00 00 00 FF 0F 58 [13:01:28]process_action close_receipt done [13:01:28]requested_data is exist [13:01:28]produce_requested_data [13:01:28]requested_item fm.sn is exist - process it [13:01:28]wFMCommunicate request_size=4 [13:01:28]MH_SAM_APDU [13:01:28]CAPDU: 80 11 00 00 [13:01:28]Write to MH i2c: E2 08 00 31 13 80 11 00 00 00 00 00 00 BE [13:01:28]Write i2c OK [13:01:28]MH_I2C_Read... [13:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:28]Read from MH i2c: E2 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: E2 17 00 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: E2 17 00 31 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 11 [13:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:01:28]wFMCommunicate OK [13:01:28]requested_item fd.num is exist - process it [13:01:28]SAM_PROTO_GetFieldsCounters [13:01:28]wFMCommunicate request_size=4 [13:01:28]MH_SAM_APDU [13:01:28]CAPDU: 80 13 00 00 [13:01:28]Write to MH i2c: E2 08 00 32 13 80 13 00 00 00 00 00 00 C1 [13:01:28]Write i2c OK [13:01:28]MH_I2C_Read... [13:01:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:28]Read from MH i2c: E2 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: E2 62 00 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: E2 62 00 32 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A0 10 00 00 0E 04 04 00 55 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 48 [13:01:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A0 10 00 00 0E 04 04 00 55 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 [13:01:28]wFMCommunicate OK [13:01:28]SAM_PROTO_GetFieldsCounters done [13:01:28]requested_item shift.num is exist - process it [13:01:28]requested_item shift.opened is exist - process it [13:01:28]req_shift_opened [13:01:28]FM_GetShiftState [13:01:28]SAM_PROTO_GetShiftState [13:01:28]wFMCommunicate request_size=4 [13:01:28]MH_SAM_APDU [13:01:28]CAPDU: 80 13 01 00 [13:01:28]Write to MH i2c: E2 08 00 33 13 80 13 01 00 00 00 00 00 C3 [13:01:28]Write i2c OK [13:01:28]MH_I2C_Read... [13:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:28]Read from MH i2c: E2 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: E2 0E 00 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: E2 0E 00 33 13 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 7C [13:01:28]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:01:28]wFMCommunicate OK [13:01:28]SAM_PROTO_GetShiftState done [13:01:28]FM_GetShiftState done [13:01:28]req_shift_opened done [13:01:28]requested_item shift.open_date is exist - process it [13:01:28]req_shift_open_date [13:01:28]req_shift_open_date done [13:01:28]produce_requested_data done [13:01:28]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4256,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [13:01:28]process_action_free close_receipt [13:01:28]json_value_free [13:01:28]json_value_free done [13:01:28]process_json_proto returns [13:01:28]Send response to host [13:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4256,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [13:01:28]free response buf [13:01:28]execute_script done [13:01:28]execute_script returns [13:01:28]free content buf [13:01:28]Sock 9.Close socket [13:01:28]Sock 9.Thread stoped [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:03]accept exits with 8 [13:02:03]New connection [13:02:03]New thread 3066772836 created [13:02:03]Thread 3066629476 joined [13:02:03]Waiting for new connection... [13:02:03] Sock 8.Parse request [13:02:03]Sock 8.Check first char [13:02:03]Sock 8.First char is OK [13:02:03]request: POST /json_proto HTTP/1.0 [13:02:03]Method: POST [13:02:03]URL: /json_proto [13:02:03]Method is POST - this is cgi request [13:02:03]url: /json_proto [13:02:03]query_string will be loaded in cgi processing [13:02:03]execute_cgi json_proto POST (null) [13:02:03]execute_cgi path=json_proto method=POST [13:02:03]POST find Content-Length [13:02:03]Host: 172.17.56.68:8080 [13:02:03]Content-Length: 613 [13:02:03]Content-Type: application/json [13:02:03] [13:02:03]POST finish read [13:02:03]Found Content-Length = 613 [13:02:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4509", "tax_sys" : 0, "items" : [ { "code": "4602441018192", "name": "\u0427\u0438\u043F\u0441\u044B FRY`S \u0421\u044B\u0440 1/70", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:03]execute_script... [13:02:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4509", "tax_sys" : 0, "items" : [ { "code": "4602441018192", "name": "\u0427\u0438\u043F\u0441\u044B FRY`S \u0421\u044B\u0440 1/70", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:03]POST & json_proto [13:02:03]process_json_proto [13:02:03]json parsed OK: [13:02:03]protocol is kg_v1.0 [13:02:03]action value=close_receipt [13:02:03]process_action close_receipt [13:02:03]cmd_close_receipt [13:02:03]MH_GetDate [13:02:03]Write to MH i2c: F0 00 00 34 13 36 [13:02:03]Write i2c OK [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: F0 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: F0 09 00 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: F0 09 00 34 13 00 50 B3 61 66 3A 8F 60 66 98 [13:02:03]GetLastDocTimeStamp 1717678889 [13:02:03]current date 1717678928 [13:02:03]FM_GetShiftState [13:02:03]SAM_PROTO_GetShiftState [13:02:03]wFMCommunicate request_size=4 [13:02:03]MH_SAM_APDU [13:02:03]CAPDU: 80 13 01 00 [13:02:03]Write to MH i2c: E2 08 00 35 13 80 13 01 00 00 00 00 00 C5 [13:02:03]Write i2c OK [13:02:03]MH_I2C_Read... [13:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:03]Read from MH i2c: E2 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: E2 0E 00 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: E2 0E 00 35 13 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 7E [13:02:03]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:02:03]wFMCommunicate OK [13:02:03]SAM_PROTO_GetShiftState done [13:02:03]FM_GetShiftState done [13:02:03]opened in 1717632745 [13:02:03]opened+sec_in_day 1717719145 [13:02:03]quantity*price = 9000 [13:02:03]sum+1 = 9001 [13:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 32 06.06.2024 13:02 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4257 ФПД: 261058597792712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T130208&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4257&fm=261058597792712&tin=02508201610067®Number=0000000000145775&sum=9000 0 [13:02:04]StoreToDocumentArchive [13:02:04]shift 85 fd 4257 [13:02:04]save to /storage/0085/doc_00004257 [13:02:04]save last doc name /storage/0085/doc_00004257 to /storage/kkm_last_doc_name [13:02:04]save OK [13:02:04]Clear old archive folders... [13:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=270 [13:02:04]tlvbuf is B6E7C090 [13:02:04]SAM_PROTO_ClearQueue [13:02:04]wFMCommunicate request_size=4 [13:02:04]MH_SAM_APDU [13:02:04]CAPDU: 80 09 00 00 [13:02:04]Write to MH i2c: E2 08 00 42 13 80 09 00 00 00 00 00 00 C7 [13:02:04]Write i2c OK [13:02:04]MH_I2C_Read... [13:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:04]Read from MH i2c: E2 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 03 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 03 00 42 13 00 90 00 C9 [13:02:04]RAPDU: 90 00 [13:02:04]wFMCommunicate OK [13:02:04]SAM_PROTO_ClearQueue done [13:02:04]KKMCreateOFDPacket [13:02:04]OFDProtocolAddRootSTLVToBuf [13:02:04]FM_MakeSignedData [13:02:04]FM_MakeSignedData [13:02:04]SAM_PROTO_SignData [13:02:04]wFMCommunicate request_size=4 [13:02:04]MH_SAM_APDU [13:02:04]CAPDU: 80 0D 01 02 [13:02:04]Write to MH i2c: E2 08 00 43 13 80 0D 01 02 00 00 00 00 CF [13:02:04]Write i2c OK [13:02:04]MH_I2C_Read... [13:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:04]Read from MH i2c: E2 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 03 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 03 00 43 13 00 90 00 CA [13:02:04]RAPDU: 90 00 [13:02:04]wFMCommunicate OK [13:02:04]wFMCommunicate request_size=255 [13:02:04]MH_SAM_APDU [13:02:04]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 39 32 06 04 1C 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 A1 D1 8B D1 80 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 20 00 00 00 F4 03 04 00 50 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [13:02:04]Write to MH i2c: E2 02 01 44 13 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 39 32 06 04 1C 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 A1 D1 8B D1 80 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 20 00 00 00 F4 03 04 00 50 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 36 [13:02:04]Write i2c OK [13:02:04]MH_I2C_Read... [13:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:05]Read from MH i2c: E2 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: E2 03 00 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: E2 03 00 44 13 00 90 00 CB [13:02:05]RAPDU: 90 00 [13:02:05]wFMCommunicate OK [13:02:05]wFMCommunicate request_size=29 [13:02:05]MH_SAM_APDU [13:02:05]CAPDU: 80 0D 02 02 18 39 35 39 33 36 30 10 04 04 00 A1 10 00 00 35 04 06 00 ED 6E 70 FC AB C8 [13:02:05]Write to MH i2c: E2 20 00 45 13 80 0D 02 02 18 00 39 35 39 33 36 30 10 04 04 00 A1 10 00 00 35 04 06 00 ED 6E 70 FC AB C8 00 00 84 [13:02:05]Write i2c OK [13:02:05]MH_I2C_Read... [13:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:05]Read from MH i2c: E2 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: E2 03 00 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: E2 03 00 45 13 00 90 00 CC [13:02:05]RAPDU: 90 00 [13:02:05]wFMCommunicate OK [13:02:05]wFMCommunicate request_size=4 [13:02:05]MH_SAM_APDU [13:02:05]CAPDU: 80 0D 03 02 [13:02:05]Write to MH i2c: E2 08 00 46 13 80 0D 03 02 00 00 00 00 D4 [13:02:05]Write i2c OK [13:02:05]MH_I2C_Read... [13:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:05]Read from MH i2c: E2 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: E2 0B 00 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: E2 0B 00 46 13 00 72 15 67 3D 58 5C 5B 6E 90 00 7D [13:02:05]RAPDU: 72 15 67 3D 58 5C 5B 6E 90 00 [13:02:05]wFMCommunicate OK [13:02:05]SAM_PROTO_SignData done [13:02:05]FM_MakeSignedData done [13:02:05]CreateOFDProtocolMessage [13:02:05]wFMCommunicate request_size=4 [13:02:05]MH_SAM_APDU [13:02:05]CAPDU: 80 11 00 00 [13:02:05]Write to MH i2c: E2 08 00 47 13 80 11 00 00 00 00 00 00 D4 [13:02:05]Write i2c OK [13:02:05]MH_I2C_Read... [13:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:05]Read from MH i2c: E2 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: E2 17 00 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: E2 17 00 47 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 27 [13:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:02:05]wFMCommunicate OK [13:02:05]CreateOFDProtocolMessage done [13:02:05]OFDSenderStorePacket 4257 [13:02:05]StoreOFDPacket docnum=4257 [13:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 22 01 00 00 60 24 1A 01 B6 6F 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 39 32 06 04 1C 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 A1 D1 8B D1 80 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 20 00 00 00 F4 03 04 00 50 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A1 10 00 00 35 04 06 00 ED 6E 70 FC AB C8 72 15 67 3D 58 5C 5B 6E [13:02:05]CheckFolder [13:02:05]dirname=/storage/ofd_packets [13:02:05]CheckFolder done [13:02:05]ProducePacketName [13:02:05]name=ofd_packets/00004257 [13:02:05]NVStorageSaveData ofd_packets/00004257 [13:02:05]File name is /storage/ofd_packets/00004257 [13:02:05]Write 320 bytes [13:02:05]NVStorageSaveData done [13:02:05]OFDSenderStorePacket done [13:02:05]KKMCreateOFDPacket done [13:02:05]NVStorageSaveData kkm_last_timestamp [13:02:05]File name is /storage/kkm_last_timestamp [13:02:05]Write 4 bytes [13:02:05]NVStorageSaveData done [13:02:05]ExternCall_PrintAddStr [13:02:05]wPrintStart [13:02:05]Write to MH i2c: 01 00 00 48 13 5B [13:02:05]Write i2c OK [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: 01 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: 01 07 00 [13:02:05]MH_I2C_Read... [13:02:05]Read from MH i2c: 01 07 00 48 13 00 00 00 00 00 FF 0F 70 [13:02:05]RasterBufferAndPrint [13:02:05]line Счет N : (3)4509 [13:02:05]line ИНН: 02508201610067 [13:02:05]line Контрольно-Кассовый Чек [13:02:05]line ПРОДАЖА [13:02:05]line Товар: 4602441018192 [13:02:05]line Чипсы FRY`S Сыр 1/70 [13:02:05]line 1.000 * 90.00 [13:02:05]line = 90.00 [13:02:05]line НДС 12% НСП 1% [13:02:05]line > о реализуемом товаре [13:02:05]line ИТОГО: 90.00 [13:02:05]line НСП 1% : 0.80 [13:02:05]line НДС 12% : 9.56 [13:02:05]line Наличными: 90.00 [13:02:05]line Безнал.: 0.00 [13:02:05]line Место: АЗС № 116 "Партнер Нефть" [13:02:05]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [13:02:05]line СНО: Общий режим [13:02:05]line Чек 32 06.06.2024 13:02 [13:02:05]line Смена: 85 ФФД: 1.0 [13:02:05]line ЗНМ: 0300000233 [13:02:05]line РНМ: 0000000000145775 [13:02:05]line Версия ККМ: v1.0 [13:02:05]line ФМ: 0000000000959360 [13:02:05]line ФД: 4257 [13:02:05]line ФПД: 261058597792712 [13:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T130208&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4257&fm=261058597792712&tin=02508201610067®Number=0000000000145775&sum=9000 [13:02:05]OFD Sender: Processing packet 4257 [packets to send 2, broken 1] [13:02:05]ProducePacketName [13:02:05]name=ofd_packets/00004257 [13:02:05]OFD Sender: To server: pG, [13:02:05]CommunicateWithHost lk.salyk.kg:30040 [13:02:05]ConnectInit lk.salyk.kg [13:02:05]line 0 [13:02:05]written 0, free lines is 4095 [13:02:05]Connected sock=10 [13:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 22 01 00 00 60 24 1A 01 B6 6F 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 39 32 06 04 1C 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 A1 D1 8B D1 80 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 20 00 00 00 F4 03 04 00 50 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A1 10 00 00 35 04 06 00 ED 6E 70 FC AB C8 72 15 67 3D 58 5C 5B 6E [13:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 BD 2E 47 00 77 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A1 10 00 00 F4 03 04 00 50 5F 61 66 B6 04 01 00 00 05 8B F7 CD FA 14 E3 F7 [13:02:05]CommunicateWithHost err = 0 [13:02:05]CheckOFDResponse [13:02:05]1017 (14) - 77093643461234 [13:02:05]1041 (16) - 0000000000959360 [13:02:05]1040 (4) - 4257 [13:02:05]1012 (4) - 06.06.2024 07:03 [13:02:05]1206 (1) - 0 [13:02:05]OFD Sender: Remove packet 4257 [13:02:05]ProducePacketName [13:02:05]name=ofd_packets/00004257 [13:02:05]NVStorageDeleteData [13:02:06]Write to MH i2c: 01 00 00 70 13 83 [13:02:06]Write i2c OK [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: 01 [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: 01 07 00 [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: 01 07 00 70 13 00 00 00 00 00 C7 0C 5D [13:02:06]RasterBufferAndPrint [13:02:06]line [13:02:06]line [13:02:06]line [13:02:06]line [13:02:06]line [13:02:06]written 0, free lines is 3275 [13:02:06]MH_Cut [13:02:06]Write to MH i2c: D1 01 00 77 13 01 5C [13:02:06]Write i2c OK [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: D1 [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: D1 01 00 [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: D1 01 00 77 13 00 5B [13:02:06]Write to MH i2c: 01 00 00 78 13 8B [13:02:06]Write i2c OK [13:02:06]MH_I2C_Read... [13:02:06]OFD Sender: No OFD packet to send [13:02:06]*** Cut start [13:02:06]*** Partial cut [13:02:06]*** CUTSNS_PIN = 1 [13:02:06]*** CUTSNS_PIN = 0 [13:02:07]*** Brake cut motor [13:02:07]Read from MH i2c: 01 [13:02:07]MH_I2C_Read... [13:02:07]*** Stop cut motor [13:02:07]*** Cut end [13:02:07]Read from MH i2c: 01 07 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: 01 07 00 78 13 00 00 00 00 00 FF 0F A0 [13:02:07]process_action close_receipt done [13:02:07]requested_data is exist [13:02:07]produce_requested_data [13:02:07]requested_item fm.sn is exist - process it [13:02:07]wFMCommunicate request_size=4 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 11 00 00 [13:02:07]Write to MH i2c: E2 08 00 79 13 80 11 00 00 00 00 00 00 06 [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 17 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 17 00 79 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 59 [13:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:02:07]wFMCommunicate OK [13:02:07]requested_item fd.num is exist - process it [13:02:07]SAM_PROTO_GetFieldsCounters [13:02:07]wFMCommunicate request_size=4 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 13 00 00 [13:02:07]Write to MH i2c: E2 08 00 7A 13 80 13 00 00 00 00 00 00 09 [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 62 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 62 00 7A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A1 10 00 00 0E 04 04 00 55 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 94 [13:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A1 10 00 00 0E 04 04 00 55 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 [13:02:07]wFMCommunicate OK [13:02:07]SAM_PROTO_GetFieldsCounters done [13:02:07]requested_item shift.num is exist - process it [13:02:07]requested_item shift.opened is exist - process it [13:02:07]req_shift_opened [13:02:07]FM_GetShiftState [13:02:07]SAM_PROTO_GetShiftState [13:02:07]wFMCommunicate request_size=4 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 13 01 00 [13:02:07]Write to MH i2c: E2 08 00 7B 13 80 13 01 00 00 00 00 00 0B [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 0E 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 0E 00 7B 13 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 C4 [13:02:07]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:02:07]wFMCommunicate OK [13:02:07]SAM_PROTO_GetShiftState done [13:02:07]FM_GetShiftState done [13:02:07]req_shift_opened done [13:02:07]requested_item shift.open_date is exist - process it [13:02:07]req_shift_open_date [13:02:07]req_shift_open_date done [13:02:07]produce_requested_data done [13:02:07]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4257,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [13:02:07]process_action_free close_receipt [13:02:07]json_value_free [13:02:07]json_value_free done [13:02:07]process_json_proto returns [13:02:07]Send response to host [13:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4257,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [13:02:07]free response buf [13:02:07]execute_script done [13:02:07]execute_script returns [13:02:07]free content buf [13:02:07]Sock 8.Close socket [13:02:07]Sock 8.Thread stoped [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:24]accept exits with 9 [13:03:24]New connection [13:03:24]New thread 3066629476 created [13:03:24]Thread 3066772836 joined [13:03:24]Waiting for new connection... [13:03:24] Sock 9.Parse request [13:03:24]Sock 9.Check first char [13:03:24]Sock 9.First char is OK [13:03:24]request: POST /json_proto HTTP/1.0 [13:03:24]Method: POST [13:03:24]URL: /json_proto [13:03:24]Method is POST - this is cgi request [13:03:24]url: /json_proto [13:03:24]query_string will be loaded in cgi processing [13:03:24]execute_cgi json_proto POST (null) [13:03:24]execute_cgi path=json_proto method=POST [13:03:24]POST find Content-Length [13:03:24]Host: 172.17.56.68:8080 [13:03:24]Content-Length: 652 [13:03:24]Content-Type: application/json [13:03:24] [13:03:24]POST finish read [13:03:24]Found Content-Length = 652 [13:03:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4510", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:24]execute_script... [13:03: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 : (3)4510", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:24]POST & json_proto [13:03:24]process_json_proto [13:03:24]json parsed OK: [13:03:24]protocol is kg_v1.0 [13:03:24]action value=close_receipt [13:03:24]process_action close_receipt [13:03:24]cmd_close_receipt [13:03:24]MH_GetDate [13:03:24]Write to MH i2c: F0 00 00 7C 13 7E [13:03:24]Write i2c OK [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: F0 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: F0 09 00 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: F0 09 00 7C 13 00 A1 B3 61 66 3A 8F 60 66 31 [13:03:24]GetLastDocTimeStamp 1717678928 [13:03:24]current date 1717679009 [13:03:24]FM_GetShiftState [13:03:24]SAM_PROTO_GetShiftState [13:03:24]wFMCommunicate request_size=4 [13:03:24]MH_SAM_APDU [13:03:24]CAPDU: 80 13 01 00 [13:03:24]Write to MH i2c: E2 08 00 7D 13 80 13 01 00 00 00 00 00 0D [13:03:24]Write i2c OK [13:03:24]MH_I2C_Read... [13:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:24]Read from MH i2c: E2 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: E2 0E 00 [13:03:24]MH_I2C_Read... [13:03:24]Read from MH i2c: E2 0E 00 7D 13 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 C6 [13:03:24]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:03:24]wFMCommunicate OK [13:03:24]SAM_PROTO_GetShiftState done [13:03:24]FM_GetShiftState done [13:03:24]opened in 1717632745 [13:03:24]opened+sec_in_day 1717719145 [13:03:24]quantity*price = 9500 [13:03:24]sum+1 = 9501 [13:03:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 33 06.06.2024 13:03 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4258 ФПД: 252843422732343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T130329&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4258&fm=252843422732343&tin=02508201610067®Number=0000000000145775&sum=9500 0 [13:03:25]StoreToDocumentArchive [13:03:25]shift 85 fd 4258 [13:03:25]save to /storage/0085/doc_00004258 [13:03:25]save last doc name /storage/0085/doc_00004258 to /storage/kkm_last_doc_name [13:03:25]save OK [13:03:25]Clear old archive folders... [13:03:25]ProcessDocumentItem done err = 0, tmpTLVsize=293 [13:03:25]tlvbuf is 019A69F0 [13:03:25]SAM_PROTO_ClearQueue [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 09 00 00 [13:03:25]Write to MH i2c: E2 08 00 8A 13 80 09 00 00 00 00 00 00 0F [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 8A 13 00 90 00 11 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]SAM_PROTO_ClearQueue done [13:03:25]KKMCreateOFDPacket [13:03:25]OFDProtocolAddRootSTLVToBuf [13:03:25]FM_MakeSignedData [13:03:25]FM_MakeSignedData [13:03:25]SAM_PROTO_SignData [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 0D 01 02 [13:03:25]Write to MH i2c: E2 08 00 8B 13 80 0D 01 02 00 00 00 00 17 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 03 00 8B 13 00 90 00 12 [13:03:25]RAPDU: 90 00 [13:03:25]wFMCommunicate OK [13:03:25]wFMCommunicate request_size=255 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A1 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [13:03:25]Write to MH i2c: E2 02 01 8C 13 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A1 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 48 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 8C 13 00 90 00 13 [13:03:26]RAPDU: 90 00 [13:03:26]wFMCommunicate OK [13:03:26]wFMCommunicate request_size=52 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 0D 02 02 2F 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A2 10 00 00 35 04 06 00 E5 F5 B2 65 50 37 [13:03:26]Write to MH i2c: E2 37 00 8D 13 80 0D 02 02 2F 00 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A2 10 00 00 35 04 06 00 E5 F5 B2 65 50 37 00 00 0B [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 8D 13 00 90 00 14 [13:03:26]RAPDU: 90 00 [13:03:26]wFMCommunicate OK [13:03:26]wFMCommunicate request_size=4 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 0D 03 02 [13:03:26]Write to MH i2c: E2 08 00 8E 13 80 0D 03 02 00 00 00 00 1C [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 0B 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 0B 00 8E 13 00 9E 28 63 6E 2E FE CC 8A 90 00 36 [13:03:26]RAPDU: 9E 28 63 6E 2E FE CC 8A 90 00 [13:03:26]wFMCommunicate OK [13:03:26]SAM_PROTO_SignData done [13:03:26]FM_MakeSignedData done [13:03:26]CreateOFDProtocolMessage [13:03:26]wFMCommunicate request_size=4 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 11 00 00 [13:03:26]Write to MH i2c: E2 08 00 8F 13 80 11 00 00 00 00 00 00 1C [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 17 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 17 00 8F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 6F [13:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:03:26]wFMCommunicate OK [13:03:26]CreateOFDProtocolMessage done [13:03:26]OFDSenderStorePacket 4258 [13:03:26]StoreOFDPacket docnum=4258 [13:03:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 39 01 00 00 EA F4 31 01 6E DA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A1 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A2 10 00 00 35 04 06 00 E5 F5 B2 65 50 37 9E 28 63 6E 2E FE CC 8A [13:03:26]CheckFolder [13:03:26]dirname=/storage/ofd_packets [13:03:26]CheckFolder done [13:03:26]ProducePacketName [13:03:26]name=ofd_packets/00004258 [13:03:26]NVStorageSaveData ofd_packets/00004258 [13:03:26]File name is /storage/ofd_packets/00004258 [13:03:26]Write 343 bytes [13:03:26]NVStorageSaveData done [13:03:26]OFDSenderStorePacket done [13:03:26]KKMCreateOFDPacket done [13:03:26]NVStorageSaveData kkm_last_timestamp [13:03:26]File name is /storage/kkm_last_timestamp [13:03:26]Write 4 bytes [13:03:26]NVStorageSaveData done [13:03:26]ExternCall_PrintAddStr [13:03:26]wPrintStart [13:03:26]Write to MH i2c: 01 00 00 90 13 A3 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 90 13 00 00 00 00 00 FF 0F B8 [13:03:26]RasterBufferAndPrint [13:03:26]line Счет N : (3)4510 [13:03:26]line ИНН: 02508201610067 [13:03:26]line Контрольно-Кассовый Чек [13:03:26]line ПРОДАЖА [13:03:26]line Товар: 4700000480050 [13:03:26]line Напиток Nitro Energy эн green ж/б 0,45л [13:03:26]line 1.000 * 95.00 [13:03:26]line = 95.00 [13:03:26]line НДС 12% НСП 1% [13:03:26]line > о реализуемом товаре [13:03:26]line ИТОГО: 95.00 [13:03:26]line НСП 1% : 0.84 [13:03:26]line НДС 12% : 10.09 [13:03:26]line Наличными: 95.00 [13:03:26]line Безнал.: 0.00 [13:03:26]line Место: АЗС № 116 "Партнер Нефть" [13:03:26]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [13:03:26]line СНО: Общий режим [13:03:26]line Чек 33 06.06.2024 13:03 [13:03:26]line Смена: 85 ФФД: 1.0 [13:03:26]line ЗНМ: 0300000233 [13:03:26]line РНМ: 0000000000145775 [13:03:26]line Версия ККМ: v1.0 [13:03:26]line ФМ: 0000000000959360 [13:03:26]line ФД: 4258 [13:03:26]line ФПД: 252843422732343 [13:03:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T130329&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4258&fm=252843422732343&tin=02508201610067®Number=0000000000145775&sum=9500 [13:03:26]line 0 [13:03:26]OFD Sender: Processing packet 4258 [packets to send 2, broken 1] [13:03:26]ProducePacketName [13:03:26]name=ofd_packets/00004258 [13:03:26]OFD Sender: To server: pG, [13:03:26]CommunicateWithHost lk.salyk.kg:30040 [13:03:26]ConnectInit lk.salyk.kg [13:03:26]written 0, free lines is 4095 [13:03:26]Connected sock=10 [13:03:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 39 01 00 00 EA F4 31 01 6E DA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A1 B3 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A2 10 00 00 35 04 06 00 E5 F5 B2 65 50 37 9E 28 63 6E 2E FE CC 8A [13:03:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 02 40 47 00 17 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A2 10 00 00 F4 03 04 00 A1 5F 61 66 B6 04 01 00 00 F4 45 C4 9A C6 8D 78 CE [13:03:27]CommunicateWithHost err = 0 [13:03:27]CheckOFDResponse [13:03:27]1017 (14) - 77093643461234 [13:03:27]1041 (16) - 0000000000959360 [13:03:27]1040 (4) - 4258 [13:03:27]1012 (4) - 06.06.2024 07:05 [13:03:27]1206 (1) - 0 [13:03:27]OFD Sender: Remove packet 4258 [13:03:27]ProducePacketName [13:03:27]name=ofd_packets/00004258 [13:03:27]NVStorageDeleteData [13:03:27]Write to MH i2c: 01 00 00 B9 13 CC [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: 01 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: 01 07 00 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: 01 07 00 B9 13 00 00 00 00 00 AC 0C 8B [13:03:27]RasterBufferAndPrint [13:03:27]line [13:03:27]line [13:03:27]line [13:03:27]line [13:03:27]line [13:03:27]written 0, free lines is 3248 [13:03:27]MH_Cut [13:03:27]Write to MH i2c: D1 01 00 C0 13 01 A5 [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: D1 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: D1 01 00 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: D1 01 00 C0 13 00 A4 [13:03:27]Write to MH i2c: 01 00 00 C1 13 D4 [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:27]OFD Sender: No OFD packet to send [13:03:28]*** Cut start [13:03:28]*** Partial cut [13:03:28]*** CUTSNS_PIN = 1 [13:03:28]*** CUTSNS_PIN = 0 [13:03:28]*** Brake cut motor [13:03:28]Read from MH i2c: 01 [13:03:28]MH_I2C_Read... [13:03:28]*** Stop cut motor [13:03:28]*** Cut end [13:03:28]Read from MH i2c: 01 07 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: 01 07 00 C1 13 00 00 00 00 00 FF 0F E9 [13:03:28]process_action close_receipt done [13:03:28]requested_data is exist [13:03:28]produce_requested_data [13:03:28]requested_item fm.sn is exist - process it [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 11 00 00 [13:03:28]Write to MH i2c: E2 08 00 C2 13 80 11 00 00 00 00 00 00 4F [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 17 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 17 00 C2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 A2 [13:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:03:28]wFMCommunicate OK [13:03:28]requested_item fd.num is exist - process it [13:03:28]SAM_PROTO_GetFieldsCounters [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 13 00 00 [13:03:28]Write to MH i2c: E2 08 00 C3 13 80 13 00 00 00 00 00 00 52 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 62 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 62 00 C3 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A2 10 00 00 0E 04 04 00 55 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 E1 [13:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A2 10 00 00 0E 04 04 00 55 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 [13:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_GetFieldsCounters done [13:03:28]requested_item shift.num is exist - process it [13:03:28]requested_item shift.opened is exist - process it [13:03:28]req_shift_opened [13:03:28]FM_GetShiftState [13:03:28]SAM_PROTO_GetShiftState [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 13 01 00 [13:03:28]Write to MH i2c: E2 08 00 C4 13 80 13 01 00 00 00 00 00 54 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 C4 13 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 0D [13:03:28]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_GetShiftState done [13:03:28]FM_GetShiftState done [13:03:28]req_shift_opened done [13:03:28]requested_item shift.open_date is exist - process it [13:03:28]req_shift_open_date [13:03:28]req_shift_open_date done [13:03:28]produce_requested_data done [13:03:28]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4258,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [13:03:28]process_action_free close_receipt [13:03:28]json_value_free [13:03:28]json_value_free done [13:03:28]process_json_proto returns [13:03:28]Send response to host [13:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4258,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [13:03:28]free response buf [13:03:28]execute_script done [13:03:28]execute_script returns [13:03:28]free content buf [13:03:28]Sock 9.Close socket [13:03:28]Sock 9.Thread stoped [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:04]accept exits with 8 [13:30:04]New connection [13:30:04]New thread 3066772836 created [13:30:04]Thread 3066629476 joined [13:30:04]Waiting for new connection... [13:30:04] Sock 8.Parse request [13:30:04]Sock 8.Check first char [13:30:04]Sock 8.First char is OK [13:30:04]request: POST /json_proto HTTP/1.0 [13:30:04]Method: POST [13:30:04]URL: /json_proto [13:30:04]Method is POST - this is cgi request [13:30:04]url: /json_proto [13:30:04]query_string will be loaded in cgi processing [13:30:04]execute_cgi json_proto POST (null) [13:30:04]execute_cgi path=json_proto method=POST [13:30:04]POST find Content-Length [13:30:04]Host: 172.17.56.68:8080 [13:30:04]Content-Length: 644 [13:30:04]Content-Type: application/json [13:30:04] [13:30:04]POST finish read [13:30:04]Found Content-Length = 644 [13:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4511", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:04]execute_script... [13:30:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4511", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:04]POST & json_proto [13:30:04]process_json_proto [13:30:04]json parsed OK: [13:30:04]protocol is kg_v1.0 [13:30:04]action value=close_receipt [13:30:04]process_action close_receipt [13:30:04]cmd_close_receipt [13:30:04]MH_GetDate [13:30:04]Write to MH i2c: F0 00 00 C5 13 C7 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: F0 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: F0 09 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: F0 09 00 C5 13 00 E1 B9 61 66 3A 8F 60 66 C0 [13:30:04]GetLastDocTimeStamp 1717679009 [13:30:04]current date 1717680609 [13:30:04]FM_GetShiftState [13:30:04]SAM_PROTO_GetShiftState [13:30:04]wFMCommunicate request_size=4 [13:30:04]MH_SAM_APDU [13:30:04]CAPDU: 80 13 01 00 [13:30:04]Write to MH i2c: E2 08 00 C6 13 80 13 01 00 00 00 00 00 56 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:04]Read from MH i2c: E2 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 0E 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 0E 00 C6 13 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 0F [13:30:04]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:30:04]wFMCommunicate OK [13:30:04]SAM_PROTO_GetShiftState done [13:30:04]FM_GetShiftState done [13:30:04]opened in 1717632745 [13:30:04]opened+sec_in_day 1717719145 [13:30:04]quantity*price = 25000 [13:30:04]sum+1 = 25001 [13:30:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 34 06.06.2024 13:30 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4259 ФПД: 47638765444182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T133009&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4259&fm=47638765444182&tin=02508201610067®Number=0000000000145775&sum=25000 0 [13:30:05]StoreToDocumentArchive [13:30:05]shift 85 fd 4259 [13:30:05]save to /storage/0085/doc_00004259 [13:30:05]save last doc name /storage/0085/doc_00004259 to /storage/kkm_last_doc_name [13:30:05]save OK [13:30:05]Clear old archive folders... [13:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=282 [13:30:05]tlvbuf is B6E950E0 [13:30:05]SAM_PROTO_ClearQueue [13:30:05]wFMCommunicate request_size=4 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 09 00 00 [13:30:05]Write to MH i2c: E2 08 00 D3 13 80 09 00 00 00 00 00 00 58 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 D3 13 00 90 00 5A [13:30:05]RAPDU: 90 00 [13:30:05]wFMCommunicate OK [13:30:05]SAM_PROTO_ClearQueue done [13:30:05]KKMCreateOFDPacket [13:30:05]OFDProtocolAddRootSTLVToBuf [13:30:05]FM_MakeSignedData [13:30:05]FM_MakeSignedData [13:30:05]SAM_PROTO_SignData [13:30:05]wFMCommunicate request_size=4 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 0D 01 02 [13:30:05]Write to MH i2c: E2 08 00 D4 13 80 0D 01 02 00 00 00 00 60 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 D4 13 00 90 00 5B [13:30:05]RAPDU: 90 00 [13:30:05]wFMCommunicate OK [13:30:05]wFMCommunicate request_size=255 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E1 B9 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 [13:30:05]Write to MH i2c: E2 02 01 D5 13 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E1 B9 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 00 00 D8 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 03 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [13:30:06]RAPDU: 90 00 [13:30:06]wFMCommunicate OK [13:30:06]wFMCommunicate request_size=41 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A3 10 00 00 35 04 06 00 2B 53 C3 B1 1C 56 [13:30:06]Write to MH i2c: E2 2C 00 D6 13 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A3 10 00 00 35 04 06 00 2B 53 C3 B1 1C 56 00 00 49 [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 03 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 03 00 D6 13 00 90 00 5D [13:30:06]RAPDU: 90 00 [13:30:06]wFMCommunicate OK [13:30:06]wFMCommunicate request_size=4 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 0D 03 02 [13:30:06]Write to MH i2c: E2 08 00 D7 13 80 0D 03 02 00 00 00 00 65 [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 0B 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 0B 00 D7 13 00 CC 0E B4 E4 8E E0 1E 0F 90 00 73 [13:30:06]RAPDU: CC 0E B4 E4 8E E0 1E 0F 90 00 [13:30:06]wFMCommunicate OK [13:30:06]SAM_PROTO_SignData done [13:30:06]FM_MakeSignedData done [13:30:06]CreateOFDProtocolMessage [13:30:06]wFMCommunicate request_size=4 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 11 00 00 [13:30:06]Write to MH i2c: E2 08 00 D8 13 80 11 00 00 00 00 00 00 65 [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 17 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 17 00 D8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 B8 [13:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:30:06]wFMCommunicate OK [13:30:06]CreateOFDProtocolMessage done [13:30:06]OFDSenderStorePacket 4259 [13:30:06]StoreOFDPacket docnum=4259 [13:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2E 01 00 00 58 34 26 01 65 C6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E1 B9 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A3 10 00 00 35 04 06 00 2B 53 C3 B1 1C 56 CC 0E B4 E4 8E E0 1E 0F [13:30:06]CheckFolder [13:30:06]dirname=/storage/ofd_packets [13:30:06]CheckFolder done [13:30:06]ProducePacketName [13:30:06]name=ofd_packets/00004259 [13:30:06]NVStorageSaveData ofd_packets/00004259 [13:30:06]File name is /storage/ofd_packets/00004259 [13:30:06]Write 332 bytes [13:30:06]NVStorageSaveData done [13:30:06]OFDSenderStorePacket done [13:30:06]KKMCreateOFDPacket done [13:30:06]NVStorageSaveData kkm_last_timestamp [13:30:06]File name is /storage/kkm_last_timestamp [13:30:06]Write 4 bytes [13:30:06]NVStorageSaveData done [13:30:06]ExternCall_PrintAddStr [13:30:06]wPrintStart [13:30:06]Write to MH i2c: 01 00 00 D9 13 EC [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: 01 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: 01 07 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: 01 07 00 D9 13 00 00 00 00 00 FF 0F 01 [13:30:06]RasterBufferAndPrint [13:30:06]line Счет N : (3)4511 [13:30:06]line ИНН: 02508201610067 [13:30:06]line Контрольно-Кассовый Чек [13:30:06]line ПРОДАЖА [13:30:06]line Товар: 2000036220012 [13:30:06]line Кофе Капучино XL(GABB TRADE) [13:30:06]line 2.000 * 125.00 [13:30:06]line = 250.00 [13:30:06]line НДС 12% НСП 1% [13:30:06]line > о реализуемом товаре [13:30:06]line ИТОГО: 250.00 [13:30:06]line НСП 1% : 2.21 [13:30:06]line НДС 12% : 26.55 [13:30:06]line Наличными: 250.00 [13:30:06]line Безнал.: 0.00 [13:30:06]line Место: АЗС № 116 "Партнер Нефть" [13:30:06]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [13:30:06]line СНО: Общий режим [13:30:06]line Чек 34 06.06.2024 13:30 [13:30:06]line Смена: 85 ФФД: 1.0 [13:30:06]line ЗНМ: 0300000233 [13:30:06]line РНМ: 0000000000145775 [13:30:06]line Версия ККМ: v1.0 [13:30:06]line ФМ: 0000000000959360 [13:30:06]line ФД: 4259 [13:30:06]line ФПД: 47638765444182 [13:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T133009&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4259&fm=47638765444182&tin=02508201610067®Number=0000000000145775&sum=25000 [13:30:06]line 0 [13:30:06]OFD Sender: Processing packet 4259 [packets to send 2, broken 1] [13:30:06]ProducePacketName [13:30:06]name=ofd_packets/00004259 [13:30:06]OFD Sender: To server: pG, [13:30:06]CommunicateWithHost lk.salyk.kg:30040 [13:30:06]ConnectInit lk.salyk.kg [13:30:06]written 0, free lines is 4095 [13:30:06]Connected sock=9 [13:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2E 01 00 00 58 34 26 01 65 C6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E1 B9 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A3 10 00 00 35 04 06 00 2B 53 C3 B1 1C 56 CC 0E B4 E4 8E E0 1E 0F [13:30:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 E4 5A 47 00 5A 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A3 10 00 00 F4 03 04 00 E1 65 61 66 B6 04 01 00 00 48 DE 10 44 57 A2 C2 69 [13:30:07]CommunicateWithHost err = 0 [13:30:07]CheckOFDResponse [13:30:07]1017 (14) - 77093643461234 [13:30:07]1041 (16) - 0000000000959360 [13:30:07]1040 (4) - 4259 [13:30:07]1012 (4) - 06.06.2024 07:31 [13:30:07]1206 (1) - 0 [13:30:07]OFD Sender: Remove packet 4259 [13:30:07]ProducePacketName [13:30:07]name=ofd_packets/00004259 [13:30:07]NVStorageDeleteData [13:30:07]Write to MH i2c: 01 00 00 02 14 16 [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 07 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 B7 0C E0 [13:30:07]RasterBufferAndPrint [13:30:07]line [13:30:07]line [13:30:07]line [13:30:07]line [13:30:07]line [13:30:07]written 0, free lines is 3260 [13:30:07]MH_Cut [13:30:07]Write to MH i2c: D1 01 00 09 14 01 EF [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: D1 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: D1 01 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: D1 01 00 09 14 00 EE [13:30:07]Write to MH i2c: 01 00 00 0A 14 1E [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]OFD Sender: No OFD packet to send [13:30:08]*** Cut start [13:30:08]*** Partial cut [13:30:08]*** CUTSNS_PIN = 1 [13:30:08]*** CUTSNS_PIN = 0 [13:30:08]*** Brake cut motor [13:30:08]Read from MH i2c: 01 [13:30:08]MH_I2C_Read... [13:30:08]*** Stop cut motor [13:30:08]*** Cut end [13:30:08]Read from MH i2c: 01 07 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: 01 07 00 0A 14 00 00 00 00 00 FF 0F 33 [13:30:08]process_action close_receipt done [13:30:08]requested_data is exist [13:30:08]produce_requested_data [13:30:08]requested_item fm.sn is exist - process it [13:30:08]wFMCommunicate request_size=4 [13:30:08]MH_SAM_APDU [13:30:08]CAPDU: 80 11 00 00 [13:30:08]Write to MH i2c: E2 08 00 0B 14 80 11 00 00 00 00 00 00 99 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 [13:30:08]MH_I2C_Read... [13:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:08]Read from MH i2c: E2 17 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 17 00 0B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 EC [13:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:30:08]wFMCommunicate OK [13:30:08]requested_item fd.num is exist - process it [13:30:08]SAM_PROTO_GetFieldsCounters [13:30:08]wFMCommunicate request_size=4 [13:30:08]MH_SAM_APDU [13:30:08]CAPDU: 80 13 00 00 [13:30:08]Write to MH i2c: E2 08 00 0C 14 80 13 00 00 00 00 00 00 9C [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:08]Read from MH i2c: E2 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 62 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 62 00 0C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A3 10 00 00 0E 04 04 00 55 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 2F [13:30:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A3 10 00 00 0E 04 04 00 55 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 [13:30:08]wFMCommunicate OK [13:30:08]SAM_PROTO_GetFieldsCounters done [13:30:08]requested_item shift.num is exist - process it [13:30:08]requested_item shift.opened is exist - process it [13:30:08]req_shift_opened [13:30:08]FM_GetShiftState [13:30:08]SAM_PROTO_GetShiftState [13:30:08]wFMCommunicate request_size=4 [13:30:08]MH_SAM_APDU [13:30:08]CAPDU: 80 13 01 00 [13:30:08]Write to MH i2c: E2 08 00 0D 14 80 13 01 00 00 00 00 00 9E [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:08]Read from MH i2c: E2 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 0E 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 0E 00 0D 14 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 57 [13:30:08]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:30:08]wFMCommunicate OK [13:30:08]SAM_PROTO_GetShiftState done [13:30:08]FM_GetShiftState done [13:30:08]req_shift_opened done [13:30:08]requested_item shift.open_date is exist - process it [13:30:08]req_shift_open_date [13:30:08]req_shift_open_date done [13:30:08]produce_requested_data done [13:30:08]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4259,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [13:30:08]process_action_free close_receipt [13:30:08]json_value_free [13:30:08]json_value_free done [13:30:08]process_json_proto returns [13:30:08]Send response to host [13:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4259,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [13:30:08]free response buf [13:30:08]execute_script done [13:30:08]execute_script returns [13:30:08]free content buf [13:30:08]Sock 8.Close socket [13:30:08]Sock 8.Thread stoped [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:49]accept exits with 10 [13:46:49]New connection [13:46:49]New thread 3066629476 created [13:46:49]Thread 3066772836 joined [13:46:49]Waiting for new connection... [13:46:49] Sock 10.Parse request [13:46:49]Sock 10.Check first char [13:46:49]Sock 10.First char is OK [13:46:49]request: POST /json_proto HTTP/1.0 [13:46:49]Method: POST [13:46:49]URL: /json_proto [13:46:49]Method is POST - this is cgi request [13:46:49]url: /json_proto [13:46:49]query_string will be loaded in cgi processing [13:46:49]execute_cgi json_proto POST (null) [13:46:49]execute_cgi path=json_proto method=POST [13:46:49]POST find Content-Length [13:46:49]Host: 172.17.56.68:8080 [13:46:49]Content-Length: 624 [13:46:49]Content-Type: application/json [13:46:49] [13:46:49]POST finish read [13:46:49]Found Content-Length = 624 [13:46:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4512", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:49]execute_script... [13:46: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 : (3)4512", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:49]POST & json_proto [13:46:49]process_json_proto [13:46:49]json parsed OK: [13:46:49]protocol is kg_v1.0 [13:46:49]action value=close_receipt [13:46:49]process_action close_receipt [13:46:49]cmd_close_receipt [13:46:49]MH_GetDate [13:46:49]Write to MH i2c: F0 00 00 0E 14 11 [13:46:49]Write i2c OK [13:46:49]MH_I2C_Read... [13:46:49]Read from MH i2c: F0 [13:46:49]MH_I2C_Read... [13:46:49]Read from MH i2c: F0 09 00 [13:46:49]MH_I2C_Read... [13:46:49]Read from MH i2c: F0 09 00 0E 14 00 CE BD 61 66 3A 8F 60 66 FB [13:46:49]GetLastDocTimeStamp 1717680609 [13:46:49]current date 1717681614 [13:46:49]FM_GetShiftState [13:46:49]SAM_PROTO_GetShiftState [13:46:49]wFMCommunicate request_size=4 [13:46:49]MH_SAM_APDU [13:46:49]CAPDU: 80 13 01 00 [13:46:49]Write to MH i2c: E2 08 00 0F 14 80 13 01 00 00 00 00 00 A0 [13:46:49]Write i2c OK [13:46:49]MH_I2C_Read... [13:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:49]Read from MH i2c: E2 [13:46:49]MH_I2C_Read... [13:46:49]Read from MH i2c: E2 0E 00 [13:46:49]MH_I2C_Read... [13:46:49]Read from MH i2c: E2 0E 00 0F 14 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 59 [13:46:49]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:46:49]wFMCommunicate OK [13:46:49]SAM_PROTO_GetShiftState done [13:46:49]FM_GetShiftState done [13:46:49]opened in 1717632745 [13:46:49]opened+sec_in_day 1717719145 [13:46:49]quantity*price = 13500 [13:46:49]sum+1 = 13501 [13:46:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 35 06.06.2024 13:46 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4260 ФПД: 48184509283403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T134654&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4260&fm=48184509283403&tin=02508201610067®Number=0000000000145775&sum=13500 0 [13:46:50]StoreToDocumentArchive [13:46:50]shift 85 fd 4260 [13:46:50]save to /storage/0085/doc_00004260 [13:46:50]save last doc name /storage/0085/doc_00004260 to /storage/kkm_last_doc_name [13:46:50]save OK [13:46:50]Clear old archive folders... [13:46:50]ProcessDocumentItem done err = 0, tmpTLVsize=278 [13:46:50]tlvbuf is 01998E30 [13:46:50]SAM_PROTO_ClearQueue [13:46:50]wFMCommunicate request_size=4 [13:46:50]MH_SAM_APDU [13:46:50]CAPDU: 80 09 00 00 [13:46:50]Write to MH i2c: E2 08 00 1C 14 80 09 00 00 00 00 00 00 A2 [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:50]Read from MH i2c: E2 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [13:46:50]RAPDU: 90 00 [13:46:50]wFMCommunicate OK [13:46:50]SAM_PROTO_ClearQueue done [13:46:50]KKMCreateOFDPacket [13:46:50]OFDProtocolAddRootSTLVToBuf [13:46:50]FM_MakeSignedData [13:46:50]FM_MakeSignedData [13:46:50]SAM_PROTO_SignData [13:46:50]wFMCommunicate request_size=4 [13:46:50]MH_SAM_APDU [13:46:50]CAPDU: 80 0D 01 02 [13:46:50]Write to MH i2c: E2 08 00 1D 14 80 0D 01 02 00 00 00 00 AA [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:50]Read from MH i2c: E2 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [13:46:50]RAPDU: 90 00 [13:46:50]wFMCommunicate OK [13:46:50]wFMCommunicate request_size=255 [13:46:50]MH_SAM_APDU [13:46:50]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 CE BD 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 [13:46:50]Write to MH i2c: E2 02 01 1E 14 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 CE BD 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 00 00 42 [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:51]Read from MH i2c: E2 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 03 00 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [13:46:51]RAPDU: 90 00 [13:46:51]wFMCommunicate OK [13:46:51]wFMCommunicate request_size=37 [13:46:51]MH_SAM_APDU [13:46:51]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A4 10 00 00 35 04 06 00 2B D2 D4 8F 3C 4B [13:46:51]Write to MH i2c: E2 28 00 1F 14 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A4 10 00 00 35 04 06 00 2B D2 D4 8F 3C 4B 00 00 9F [13:46:51]Write i2c OK [13:46:51]MH_I2C_Read... [13:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:51]Read from MH i2c: E2 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 03 00 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 03 00 1F 14 00 90 00 A7 [13:46:51]RAPDU: 90 00 [13:46:51]wFMCommunicate OK [13:46:51]wFMCommunicate request_size=4 [13:46:51]MH_SAM_APDU [13:46:51]CAPDU: 80 0D 03 02 [13:46:51]Write to MH i2c: E2 08 00 20 14 80 0D 03 02 00 00 00 00 AF [13:46:51]Write i2c OK [13:46:51]MH_I2C_Read... [13:46:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:51]Read from MH i2c: E2 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 0B 00 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 0B 00 20 14 00 23 6D E5 1D 65 1C BD EB 90 00 6B [13:46:51]RAPDU: 23 6D E5 1D 65 1C BD EB 90 00 [13:46:51]wFMCommunicate OK [13:46:51]SAM_PROTO_SignData done [13:46:51]FM_MakeSignedData done [13:46:51]CreateOFDProtocolMessage [13:46:51]wFMCommunicate request_size=4 [13:46:51]MH_SAM_APDU [13:46:51]CAPDU: 80 11 00 00 [13:46:51]Write to MH i2c: E2 08 00 21 14 80 11 00 00 00 00 00 00 AF [13:46:51]Write i2c OK [13:46:51]MH_I2C_Read... [13:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:51]Read from MH i2c: E2 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 17 00 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 17 00 21 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 02 [13:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:46:51]wFMCommunicate OK [13:46:51]CreateOFDProtocolMessage done [13:46:51]OFDSenderStorePacket 4260 [13:46:51]StoreOFDPacket docnum=4260 [13:46:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 EA 3A 22 01 3D 0F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 CE BD 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A4 10 00 00 35 04 06 00 2B D2 D4 8F 3C 4B 23 6D E5 1D 65 1C BD EB [13:46:51]CheckFolder [13:46:51]dirname=/storage/ofd_packets [13:46:51]CheckFolder done [13:46:51]ProducePacketName [13:46:51]name=ofd_packets/00004260 [13:46:51]NVStorageSaveData ofd_packets/00004260 [13:46:51]File name is /storage/ofd_packets/00004260 [13:46:51]Write 328 bytes [13:46:51]NVStorageSaveData done [13:46:51]OFDSenderStorePacket done [13:46:51]KKMCreateOFDPacket done [13:46:51]NVStorageSaveData kkm_last_timestamp [13:46:51]File name is /storage/kkm_last_timestamp [13:46:51]Write 4 bytes [13:46:51]NVStorageSaveData done [13:46:51]ExternCall_PrintAddStr [13:46:51]wPrintStart [13:46:51]Write to MH i2c: 01 00 00 22 14 36 [13:46:51]Write i2c OK [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: 01 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: 01 07 00 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: 01 07 00 22 14 00 00 00 00 00 FF 0F 4B [13:46:51]RasterBufferAndPrint [13:46:51]line Счет N : (3)4512 [13:46:51]line ИНН: 02508201610067 [13:46:51]line Контрольно-Кассовый Чек [13:46:51]line ПРОДАЖА [13:46:51]line Товар: 48741224 [13:46:51]line Сигареты Winston Super Slims Blue [13:46:51]line 1.000 * 135.00 [13:46:51]line = 135.00 [13:46:51]line НДС 12% НСП 1% [13:46:51]line > о реализуемом товаре [13:46:51]line ИТОГО: 135.00 [13:46:51]line НСП 1% : 1.19 [13:46:51]line НДС 12% : 14.34 [13:46:51]line Наличными: 135.00 [13:46:51]line Безнал.: 0.00 [13:46:51]line Место: АЗС № 116 "Партнер Нефть" [13:46:51]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [13:46:51]line СНО: Общий режим [13:46:51]line Чек 35 06.06.2024 13:46 [13:46:51]line Смена: 85 ФФД: 1.0 [13:46:51]line ЗНМ: 0300000233 [13:46:51]line РНМ: 0000000000145775 [13:46:51]line Версия ККМ: v1.0 [13:46:51]line ФМ: 0000000000959360 [13:46:51]line ФД: 4260 [13:46:51]line ФПД: 48184509283403 [13:46:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T134654&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4260&fm=48184509283403&tin=02508201610067®Number=0000000000145775&sum=13500 [13:46:51]line 0 [13:46:51]OFD Sender: Processing packet 4260 [packets to send 2, broken 1] [13:46:51]ProducePacketName [13:46:51]name=ofd_packets/00004260 [13:46:51]OFD Sender: To server: pG, [13:46:51]CommunicateWithHost lk.salyk.kg:30040 [13:46:51]ConnectInit lk.salyk.kg [13:46:51]written 0, free lines is 4095 [13:46:51]Connected sock=9 [13:46:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 EA 3A 22 01 3D 0F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 CE BD 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A4 10 00 00 35 04 06 00 2B D2 D4 8F 3C 4B 23 6D E5 1D 65 1C BD EB [13:46:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 94 F7 47 00 13 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A4 10 00 00 F4 03 04 00 CE 69 61 66 B6 04 01 00 00 2E 87 EA 56 1F AD 60 94 [13:46:51]CommunicateWithHost err = 0 [13:46:51]CheckOFDResponse [13:46:51]1017 (14) - 77093643461234 [13:46:51]1041 (16) - 0000000000959360 [13:46:51]1040 (4) - 4260 [13:46:51]1012 (4) - 06.06.2024 07:48 [13:46:51]1206 (1) - 0 [13:46:51]OFD Sender: Remove packet 4260 [13:46:51]ProducePacketName [13:46:51]name=ofd_packets/00004260 [13:46:51]NVStorageDeleteData [13:46:52]Write to MH i2c: 01 00 00 4B 14 5F [13:46:52]Write i2c OK [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: 01 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: 01 07 00 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 AC 0C 1E [13:46:52]RasterBufferAndPrint [13:46:52]line [13:46:52]line [13:46:52]line [13:46:52]line [13:46:52]line [13:46:52]written 0, free lines is 3247 [13:46:52]MH_Cut [13:46:52]Write to MH i2c: D1 01 00 52 14 01 38 [13:46:52]Write i2c OK [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: D1 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: D1 01 00 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: D1 01 00 52 14 00 37 [13:46:52]Write to MH i2c: 01 00 00 53 14 67 [13:46:52]Write i2c OK [13:46:52]MH_I2C_Read... [13:46:52]OFD Sender: No OFD packet to send [13:46:52]*** Cut start [13:46:52]*** Partial cut [13:46:52]*** CUTSNS_PIN = 1 [13:46:53]*** CUTSNS_PIN = 0 [13:46:53]*** Brake cut motor [13:46:53]Read from MH i2c: 01 [13:46:53]MH_I2C_Read... [13:46:53]*** Stop cut motor [13:46:53]*** Cut end [13:46:53]Read from MH i2c: 01 07 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: 01 07 00 53 14 00 00 00 00 00 FF 0F 7C [13:46:53]process_action close_receipt done [13:46:53]requested_data is exist [13:46:53]produce_requested_data [13:46:53]requested_item fm.sn is exist - process it [13:46:53]wFMCommunicate request_size=4 [13:46:53]MH_SAM_APDU [13:46:53]CAPDU: 80 11 00 00 [13:46:53]Write to MH i2c: E2 08 00 54 14 80 11 00 00 00 00 00 00 E2 [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:53]Read from MH i2c: E2 17 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 17 00 54 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 35 [13:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:46:53]wFMCommunicate OK [13:46:53]requested_item fd.num is exist - process it [13:46:53]SAM_PROTO_GetFieldsCounters [13:46:53]wFMCommunicate request_size=4 [13:46:53]MH_SAM_APDU [13:46:53]CAPDU: 80 13 00 00 [13:46:53]Write to MH i2c: E2 08 00 55 14 80 13 00 00 00 00 00 00 E5 [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 62 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 62 00 55 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A4 10 00 00 0E 04 04 00 55 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 7C [13:46:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A4 10 00 00 0E 04 04 00 55 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 [13:46:53]wFMCommunicate OK [13:46:53]SAM_PROTO_GetFieldsCounters done [13:46:53]requested_item shift.num is exist - process it [13:46:53]requested_item shift.opened is exist - process it [13:46:53]req_shift_opened [13:46:53]FM_GetShiftState [13:46:53]SAM_PROTO_GetShiftState [13:46:53]wFMCommunicate request_size=4 [13:46:53]MH_SAM_APDU [13:46:53]CAPDU: 80 13 01 00 [13:46:53]Write to MH i2c: E2 08 00 56 14 80 13 01 00 00 00 00 00 E7 [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 0E 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 0E 00 56 14 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 A0 [13:46:53]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:46:53]wFMCommunicate OK [13:46:53]SAM_PROTO_GetShiftState done [13:46:53]FM_GetShiftState done [13:46:53]req_shift_opened done [13:46:53]requested_item shift.open_date is exist - process it [13:46:53]req_shift_open_date [13:46:53]req_shift_open_date done [13:46:53]produce_requested_data done [13:46:53]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4260,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [13:46:53]process_action_free close_receipt [13:46:53]json_value_free [13:46:53]json_value_free done [13:46:53]process_json_proto returns [13:46:53]Send response to host [13:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4260,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [13:46:53]free response buf [13:46:53]execute_script done [13:46:53]execute_script returns [13:46:53]free content buf [13:46:53]Sock 10.Close socket [13:46:53]Sock 10.Thread stoped [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]accept exits with 8 [13:48:02]New connection [13:48:02]New thread 3066772836 created [13:48:02]Thread 3066629476 joined [13:48:02]Waiting for new connection... [13:48:02] Sock 8.Parse request [13:48:02]Sock 8.Check first char [13:48:02]Sock 8.First char is OK [13:48:02]request: POST /json_proto HTTP/1.0 [13:48:02]Method: POST [13:48:02]URL: /json_proto [13:48:02]Method is POST - this is cgi request [13:48:02]url: /json_proto [13:48:02]query_string will be loaded in cgi processing [13:48:02]execute_cgi json_proto POST (null) [13:48:02]execute_cgi path=json_proto method=POST [13:48:02]POST find Content-Length [13:48:02]Host: 172.17.56.68:8080 [13:48:02]Content-Length: 745 [13:48:02]Content-Type: application/json [13:48:02] [13:48:02]POST finish read [13:48:02]Found Content-Length = 745 [13:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4513", "tax_sys" : 0, "items" : [ { "code": "6921090700103", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:02]execute_script... [13:48:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4513", "tax_sys" : 0, "items" : [ { "code": "6921090700103", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:02]POST & json_proto [13:48:02]process_json_proto [13:48:02]json parsed OK: [13:48:02]protocol is kg_v1.0 [13:48:02]action value=close_receipt [13:48:02]process_action close_receipt [13:48:02]cmd_close_receipt [13:48:02]MH_GetDate [13:48:02]Write to MH i2c: F0 00 00 57 14 5A [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: F0 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: F0 09 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: F0 09 00 57 14 00 17 BE 61 66 3A 8F 60 66 8E [13:48:02]OFD Sender: No OFD packet to send [13:48:02]GetLastDocTimeStamp 1717681614 [13:48:02]current date 1717681687 [13:48:02]FM_GetShiftState [13:48:02]SAM_PROTO_GetShiftState [13:48:02]wFMCommunicate request_size=4 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 13 01 00 [13:48:02]Write to MH i2c: E2 08 00 58 14 80 13 01 00 00 00 00 00 E9 [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 0E 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 0E 00 58 14 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 A2 [13:48:02]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:48:02]wFMCommunicate OK [13:48:02]SAM_PROTO_GetShiftState done [13:48:02]FM_GetShiftState done [13:48:02]opened in 1717632745 [13:48:02]opened+sec_in_day 1717719145 [13:48:02]quantity*price = 50200 [13:48:02]sum+1 = 50201 [13:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 502.00 НСП 1% : 4.44 НДС 12% : 53.31 Наличными: 502.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 36 06.06.2024 13:48 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4261 ФПД: 122202773733813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T134807&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4261&fm=122202773733813&tin=02508201610067®Number=0000000000145775&sum=50200 0 [13:48:03]StoreToDocumentArchive [13:48:03]shift 85 fd 4261 [13:48:03]save to /storage/0085/doc_00004261 [13:48:03]save last doc name /storage/0085/doc_00004261 to /storage/kkm_last_doc_name [13:48:03]save OK [13:48:03]Clear old archive folders... [13:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=307 [13:48:03]tlvbuf is 01950520 [13:48:03]SAM_PROTO_ClearQueue [13:48:03]wFMCommunicate request_size=4 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 09 00 00 [13:48:03]Write to MH i2c: E2 08 00 65 14 80 09 00 00 00 00 00 00 EB [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:03]Read from MH i2c: E2 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 65 14 00 90 00 ED [13:48:03]RAPDU: 90 00 [13:48:03]wFMCommunicate OK [13:48:03]SAM_PROTO_ClearQueue done [13:48:03]KKMCreateOFDPacket [13:48:03]OFDProtocolAddRootSTLVToBuf [13:48:03]FM_MakeSignedData [13:48:03]FM_MakeSignedData [13:48:03]SAM_PROTO_SignData [13:48:03]wFMCommunicate request_size=4 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 0D 01 02 [13:48:03]Write to MH i2c: E2 08 00 66 14 80 0D 01 02 00 00 00 00 F3 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:03]Read from MH i2c: E2 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [13:48:03]RAPDU: 90 00 [13:48:03]wFMCommunicate OK [13:48:03]wFMCommunicate request_size=255 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 36 39 32 31 30 39 30 37 30 30 31 30 33 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 17 BE 61 66 0E 04 04 00 55 00 00 00 B9 04 [13:48:03]Write to MH i2c: E2 02 01 67 14 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 36 39 32 31 30 39 30 37 30 30 31 30 33 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 17 BE 61 66 0E 04 04 00 55 00 00 00 B9 04 00 00 96 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:03]Read from MH i2c: E2 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [13:48:03]RAPDU: 90 00 [13:48:03]wFMCommunicate OK [13:48:03]wFMCommunicate request_size=66 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A5 10 00 00 35 04 06 00 6F 24 8C EB 41 B5 [13:48:03]Write to MH i2c: E2 45 00 68 14 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A5 10 00 00 35 04 06 00 6F 24 8C EB 41 B5 00 00 01 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:04]Read from MH i2c: E2 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 03 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 03 00 68 14 00 90 00 F0 [13:48:04]RAPDU: 90 00 [13:48:04]wFMCommunicate OK [13:48:04]wFMCommunicate request_size=4 [13:48:04]MH_SAM_APDU [13:48:04]CAPDU: 80 0D 03 02 [13:48:04]Write to MH i2c: E2 08 00 69 14 80 0D 03 02 00 00 00 00 F8 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:04]Read from MH i2c: E2 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 0B 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 0B 00 69 14 00 87 B5 A1 66 26 11 4B 05 90 00 C3 [13:48:04]RAPDU: 87 B5 A1 66 26 11 4B 05 90 00 [13:48:04]wFMCommunicate OK [13:48:04]SAM_PROTO_SignData done [13:48:04]FM_MakeSignedData done [13:48:04]CreateOFDProtocolMessage [13:48:04]wFMCommunicate request_size=4 [13:48:04]MH_SAM_APDU [13:48:04]CAPDU: 80 11 00 00 [13:48:04]Write to MH i2c: E2 08 00 6A 14 80 11 00 00 00 00 00 00 F8 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:04]Read from MH i2c: E2 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 17 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: E2 17 00 6A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 4B [13:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:48:04]wFMCommunicate OK [13:48:04]CreateOFDProtocolMessage done [13:48:04]OFDSenderStorePacket 4261 [13:48:04]StoreOFDPacket docnum=4261 [13:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 47 01 00 00 3E 6D 3F 01 94 33 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 36 39 32 31 30 39 30 37 30 30 31 30 33 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 17 BE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A5 10 00 00 35 04 06 00 6F 24 8C EB 41 B5 87 B5 A1 66 26 11 4B 05 [13:48:04]CheckFolder [13:48:04]dirname=/storage/ofd_packets [13:48:04]CheckFolder done [13:48:04]ProducePacketName [13:48:04]name=ofd_packets/00004261 [13:48:04]NVStorageSaveData ofd_packets/00004261 [13:48:04]File name is /storage/ofd_packets/00004261 [13:48:04]Write 357 bytes [13:48:04]NVStorageSaveData done [13:48:04]OFDSenderStorePacket done [13:48:04]KKMCreateOFDPacket done [13:48:04]NVStorageSaveData kkm_last_timestamp [13:48:04]File name is /storage/kkm_last_timestamp [13:48:04]Write 4 bytes [13:48:04]NVStorageSaveData done [13:48:04]ExternCall_PrintAddStr [13:48:04]wPrintStart [13:48:04]Write to MH i2c: 01 00 00 6B 14 7F [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 07 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 07 00 6B 14 00 00 00 00 00 FF 0F 94 [13:48:04]RasterBufferAndPrint [13:48:04]line Счет N : (3)4513 [13:48:04]line ИНН: 02508201610067 [13:48:04]line Контрольно-Кассовый Чек [13:48:04]line ПРОДАЖА [13:48:04]line Товар: 6921090700103 [13:48:04]line Очки солнцезащитные в ассортименте [13:48:04]line 1.000 * 502.00 [13:48:04]line = 502.00 [13:48:04]line НДС 12% НСП 1% [13:48:04]line > о реализуемом товаре [13:48:04]line ИТОГО: 502.00 [13:48:04]line НСП 1% : 4.44 [13:48:04]line НДС 12% : 53.31 [13:48:04]line Наличными: 502.00 [13:48:04]line Безнал.: 0.00 [13:48:04]line Место: АЗС № 116 "Партнер Нефть" [13:48:04]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [13:48:04]line СНО: Общий режим [13:48:04]line Чек 36 06.06.2024 13:48 [13:48:04]line Смена: 85 ФФД: 1.0 [13:48:04]line ЗНМ: 0300000233 [13:48:04]line РНМ: 0000000000145775 [13:48:04]line Версия ККМ: v1.0 [13:48:04]line ФМ: 0000000000959360 [13:48:04]line ФД: 4261 [13:48:04]line ФПД: 122202773733813 [13:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T134807&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4261&fm=122202773733813&tin=02508201610067®Number=0000000000145775&sum=50200 [13:48:04]line 0 [13:48:04]OFD Sender: Processing packet 4261 [packets to send 2, broken 1] [13:48:04]ProducePacketName [13:48:04]name=ofd_packets/00004261 [13:48:04]OFD Sender: To server: pG, [13:48:04]CommunicateWithHost lk.salyk.kg:30040 [13:48:04]ConnectInit lk.salyk.kg [13:48:04]written 0, free lines is 4095 [13:48:04]Connected sock=11 [13:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 47 01 00 00 3E 6D 3F 01 94 33 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 36 39 32 31 30 39 30 37 30 30 31 30 33 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 17 BE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A5 10 00 00 35 04 06 00 6F 24 8C EB 41 B5 87 B5 A1 66 26 11 4B 05 [13:48:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 49 8A 47 00 9F 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 39 35 39 33 36 30 10 04 04 00 A5 10 00 00 F4 03 04 00 17 6A 61 66 B6 04 01 00 00 8F A6 63 BB FE 01 0C 0A [13:48:04]CommunicateWithHost err = 0 [13:48:04]CheckOFDResponse [13:48:04]1017 (14) - 77093643461234 [13:48:04]1041 (16) - 0000000000959360 [13:48:04]1040 (4) - 4261 [13:48:04]1012 (4) - 06.06.2024 07:49 [13:48:04]1206 (1) - 0 [13:48:04]OFD Sender: Remove packet 4261 [13:48:04]ProducePacketName [13:48:04]name=ofd_packets/00004261 [13:48:04]NVStorageDeleteData [13:48:04]Write to MH i2c: 01 00 00 94 14 A8 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 07 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 07 00 94 14 00 00 00 00 00 AB 0C 66 [13:48:04]RasterBufferAndPrint [13:48:04]line [13:48:04]line [13:48:04]line [13:48:04]line [13:48:04]line [13:48:04]written 0, free lines is 3246 [13:48:04]MH_Cut [13:48:04]Write to MH i2c: D1 01 00 9B 14 01 81 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: D1 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: D1 01 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: D1 01 00 9B 14 00 80 [13:48:04]Write to MH i2c: 01 00 00 9C 14 B0 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:05]OFD Sender: No OFD packet to send [13:48:05]*** Cut start [13:48:05]*** Partial cut [13:48:05]*** CUTSNS_PIN = 1 [13:48:05]*** CUTSNS_PIN = 0 [13:48:06]*** Brake cut motor [13:48:06]Read from MH i2c: 01 [13:48:06]MH_I2C_Read... [13:48:06]*** Stop cut motor [13:48:06]*** Cut end [13:48:06]Read from MH i2c: 01 07 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: 01 07 00 9C 14 00 00 00 00 00 FF 0F C5 [13:48:06]process_action close_receipt done [13:48:06]requested_data is exist [13:48:06]produce_requested_data [13:48:06]requested_item fm.sn is exist - process it [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 11 00 00 [13:48:06]Write to MH i2c: E2 08 00 9D 14 80 11 00 00 00 00 00 00 2B [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 17 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 17 00 9D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 7E [13:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:48:06]wFMCommunicate OK [13:48:06]requested_item fd.num is exist - process it [13:48:06]SAM_PROTO_GetFieldsCounters [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 13 00 00 [13:48:06]Write to MH i2c: E2 08 00 9E 14 80 13 00 00 00 00 00 00 2E [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 62 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 62 00 9E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A5 10 00 00 0E 04 04 00 55 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 C9 [13:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A5 10 00 00 0E 04 04 00 55 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 [13:48:06]wFMCommunicate OK [13:48:06]SAM_PROTO_GetFieldsCounters done [13:48:06]requested_item shift.num is exist - process it [13:48:06]requested_item shift.opened is exist - process it [13:48:06]req_shift_opened [13:48:06]FM_GetShiftState [13:48:06]SAM_PROTO_GetShiftState [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 13 01 00 [13:48:06]Write to MH i2c: E2 08 00 9F 14 80 13 01 00 00 00 00 00 30 [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 0E 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 0E 00 9F 14 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 E9 [13:48:06]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:48:06]wFMCommunicate OK [13:48:06]SAM_PROTO_GetShiftState done [13:48:06]FM_GetShiftState done [13:48:06]req_shift_opened done [13:48:06]requested_item shift.open_date is exist - process it [13:48:06]req_shift_open_date [13:48:06]req_shift_open_date done [13:48:06]produce_requested_data done [13:48:06]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4261,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [13:48:06]process_action_free close_receipt [13:48:06]json_value_free [13:48:06]json_value_free done [13:48:06]process_json_proto returns [13:48:06]Send response to host [13:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4261,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [13:48:06]free response buf [13:48:06]execute_script done [13:48:06]execute_script returns [13:48:06]free content buf [13:48:06]Sock 8.Close socket [13:48:06]Sock 8.Thread stoped [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:36]accept exits with 9 [13:50:36]New connection [13:50:36]New thread 3066629476 created [13:50:36]Thread 3066772836 joined [13:50:36]Waiting for new connection... [13:50:36] Sock 9.Parse request [13:50:36]Sock 9.Check first char [13:50:36]Sock 9.First char is OK [13:50:36]request: POST /json_proto HTTP/1.0 [13:50:36]Method: POST [13:50:36]URL: /json_proto [13:50:36]Method is POST - this is cgi request [13:50:36]url: /json_proto [13:50:36]query_string will be loaded in cgi processing [13:50:36]execute_cgi json_proto POST (null) [13:50:36]execute_cgi path=json_proto method=POST [13:50:36]POST find Content-Length [13:50:36]Host: 172.17.56.68:8080 [13:50:36]Content-Length: 653 [13:50:36]Content-Type: application/json [13:50:36] [13:50:36]POST finish read [13:50:36]Found Content-Length = 653 [13:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4514", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:36]execute_script... [13:50:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4514", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:36]POST & json_proto [13:50:36]process_json_proto [13:50:36]json parsed OK: [13:50:36]protocol is kg_v1.0 [13:50:36]action value=close_receipt [13:50:36]process_action close_receipt [13:50:36]cmd_close_receipt [13:50:36]MH_GetDate [13:50:36]Write to MH i2c: F0 00 00 A0 14 A3 [13:50:36]Write i2c OK [13:50:36]MH_I2C_Read... [13:50:36]Read from MH i2c: F0 [13:50:36]MH_I2C_Read... [13:50:36]Read from MH i2c: F0 09 00 [13:50:36]MH_I2C_Read... [13:50:36]Read from MH i2c: F0 09 00 A0 14 00 B1 BE 61 66 3A 8F 60 66 71 [13:50:36]GetLastDocTimeStamp 1717681687 [13:50:36]current date 1717681841 [13:50:36]FM_GetShiftState [13:50:36]SAM_PROTO_GetShiftState [13:50:36]wFMCommunicate request_size=4 [13:50:36]MH_SAM_APDU [13:50:36]CAPDU: 80 13 01 00 [13:50:36]Write to MH i2c: E2 08 00 A1 14 80 13 01 00 00 00 00 00 32 [13:50:36]Write i2c OK [13:50:36]MH_I2C_Read... [13:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:36]Read from MH i2c: E2 [13:50:36]MH_I2C_Read... [13:50:36]Read from MH i2c: E2 0E 00 [13:50:36]MH_I2C_Read... [13:50:36]Read from MH i2c: E2 0E 00 A1 14 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 EB [13:50:36]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:50:36]wFMCommunicate OK [13:50:36]SAM_PROTO_GetShiftState done [13:50:36]FM_GetShiftState done [13:50:36]opened in 1717632745 [13:50:36]opened+sec_in_day 1717719145 [13:50:36]quantity*price = 7200 [13:50:36]sum+1 = 7201 [13:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 72.00 НСП 1% : 0.64 НДС 12% : 7.65 Наличными: 72.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 37 06.06.2024 13:50 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4262 ФПД: 118029059944861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T135041&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4262&fm=118029059944861&tin=02508201610067®Number=0000000000145775&sum=7200 0 [13:50:37]StoreToDocumentArchive [13:50:37]shift 85 fd 4262 [13:50:37]save to /storage/0085/doc_00004262 [13:50:37]save last doc name /storage/0085/doc_00004262 to /storage/kkm_last_doc_name [13:50:37]save OK [13:50:37]Clear old archive folders... [13:50:37]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:50:37]tlvbuf is 019E6590 [13:50:37]SAM_PROTO_ClearQueue [13:50:37]wFMCommunicate request_size=4 [13:50:37]MH_SAM_APDU [13:50:37]CAPDU: 80 09 00 00 [13:50:37]Write to MH i2c: E2 08 00 AE 14 80 09 00 00 00 00 00 00 34 [13:50:37]Write i2c OK [13:50:37]MH_I2C_Read... [13:50:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:37]Read from MH i2c: E2 [13:50:37]MH_I2C_Read... [13:50:37]Read from MH i2c: E2 03 00 [13:50:37]MH_I2C_Read... [13:50:37]Read from MH i2c: E2 03 00 AE 14 00 90 00 36 [13:50:37]RAPDU: 90 00 [13:50:37]wFMCommunicate OK [13:50:37]SAM_PROTO_ClearQueue done [13:50:37]KKMCreateOFDPacket [13:50:37]OFDProtocolAddRootSTLVToBuf [13:50:37]FM_MakeSignedData [13:50:37]FM_MakeSignedData [13:50:37]SAM_PROTO_SignData [13:50:37]wFMCommunicate request_size=4 [13:50:37]MH_SAM_APDU [13:50:37]CAPDU: 80 0D 01 02 [13:50:37]Write to MH i2c: E2 08 00 AF 14 80 0D 01 02 00 00 00 00 3C [13:50:37]Write i2c OK [13:50:37]MH_I2C_Read... [13:50:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:37]Read from MH i2c: E2 [13:50:37]MH_I2C_Read... [13:50:37]Read from MH i2c: E2 03 00 [13:50:37]MH_I2C_Read... [13:50:37]Read from MH i2c: E2 03 00 AF 14 00 90 00 37 [13:50:37]RAPDU: 90 00 [13:50:37]wFMCommunicate OK [13:50:37]wFMCommunicate request_size=255 [13:50:37]MH_SAM_APDU [13:50:37]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 B1 BE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:50:37]Write to MH i2c: E2 02 01 B0 14 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 B1 BE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 D6 [13:50:37]Write i2c OK [13:50:37]MH_I2C_Read... [13:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:38]Read from MH i2c: E2 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: E2 03 00 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [13:50:38]RAPDU: 90 00 [13:50:38]wFMCommunicate OK [13:50:38]wFMCommunicate request_size=53 [13:50:38]MH_SAM_APDU [13:50:38]CAPDU: 80 0D 02 02 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A6 10 00 00 35 04 06 00 6B 58 C8 30 F1 9D [13:50:38]Write to MH i2c: E2 38 00 B1 14 80 0D 02 02 30 00 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A6 10 00 00 35 04 06 00 6B 58 C8 30 F1 9D 00 00 37 [13:50:38]Write i2c OK [13:50:38]MH_I2C_Read... [13:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:38]Read from MH i2c: E2 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: E2 03 00 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: E2 03 00 B1 14 00 90 00 39 [13:50:38]RAPDU: 90 00 [13:50:38]wFMCommunicate OK [13:50:38]wFMCommunicate request_size=4 [13:50:38]MH_SAM_APDU [13:50:38]CAPDU: 80 0D 03 02 [13:50:38]Write to MH i2c: E2 08 00 B2 14 80 0D 03 02 00 00 00 00 41 [13:50:38]Write i2c OK [13:50:38]MH_I2C_Read... [13:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:38]Read from MH i2c: E2 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: E2 0B 00 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: E2 0B 00 B2 14 00 09 40 5A 90 39 92 A2 13 90 00 F5 [13:50:38]RAPDU: 09 40 5A 90 39 92 A2 13 90 00 [13:50:38]wFMCommunicate OK [13:50:38]SAM_PROTO_SignData done [13:50:38]FM_MakeSignedData done [13:50:38]CreateOFDProtocolMessage [13:50:38]wFMCommunicate request_size=4 [13:50:38]MH_SAM_APDU [13:50:38]CAPDU: 80 11 00 00 [13:50:38]Write to MH i2c: E2 08 00 B3 14 80 11 00 00 00 00 00 00 41 [13:50:38]Write i2c OK [13:50:38]MH_I2C_Read... [13:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:38]Read from MH i2c: E2 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: E2 17 00 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: E2 17 00 B3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 94 [13:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:50:38]wFMCommunicate OK [13:50:38]CreateOFDProtocolMessage done [13:50:38]OFDSenderStorePacket 4262 [13:50:38]StoreOFDPacket docnum=4262 [13:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3A 01 00 00 AE 16 32 01 DB 69 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 B1 BE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A6 10 00 00 35 04 06 00 6B 58 C8 30 F1 9D 09 40 5A 90 39 92 A2 13 [13:50:38]CheckFolder [13:50:38]dirname=/storage/ofd_packets [13:50:38]CheckFolder done [13:50:38]ProducePacketName [13:50:38]name=ofd_packets/00004262 [13:50:38]NVStorageSaveData ofd_packets/00004262 [13:50:38]File name is /storage/ofd_packets/00004262 [13:50:38]Write 344 bytes [13:50:38]NVStorageSaveData done [13:50:38]OFDSenderStorePacket done [13:50:38]KKMCreateOFDPacket done [13:50:38]NVStorageSaveData kkm_last_timestamp [13:50:38]File name is /storage/kkm_last_timestamp [13:50:38]Write 4 bytes [13:50:38]NVStorageSaveData done [13:50:38]ExternCall_PrintAddStr [13:50:38]wPrintStart [13:50:38]Write to MH i2c: 01 00 00 B4 14 C8 [13:50:38]Write i2c OK [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: 01 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: 01 07 00 [13:50:38]MH_I2C_Read... [13:50:38]Read from MH i2c: 01 07 00 B4 14 00 00 00 00 00 FF 0F DD [13:50:38]RasterBufferAndPrint [13:50:38]line Счет N : (3)4514 [13:50:38]line ИНН: 02508201610067 [13:50:38]line Контрольно-Кассовый Чек [13:50:38]line ПРОДАЖА [13:50:38]line Товар: 4600682557456 [13:50:38]line Напиток FLash up energy эн ж/б 0,5/0,45л [13:50:38]line 1.000 * 72.00 [13:50:38]line = 72.00 [13:50:38]line НДС 12% НСП 1% [13:50:38]line > о реализуемом товаре [13:50:38]line ИТОГО: 72.00 [13:50:38]line НСП 1% : 0.64 [13:50:38]line НДС 12% : 7.65 [13:50:38]line Наличными: 72.00 [13:50:38]line Безнал.: 0.00 [13:50:38]line Место: АЗС № 116 "Партнер Нефть" [13:50:38]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [13:50:38]line СНО: Общий режим [13:50:38]line Чек 37 06.06.2024 13:50 [13:50:38]line Смена: 85 ФФД: 1.0 [13:50:38]line ЗНМ: 0300000233 [13:50:38]line РНМ: 0000000000145775 [13:50:38]line Версия ККМ: v1.0 [13:50:38]line ФМ: 0000000000959360 [13:50:38]line ФД: 4262 [13:50:38]line ФПД: 118029059944861 [13:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T135041&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4262&fm=118029059944861&tin=02508201610067®Number=0000000000145775&sum=7200 [13:50:38]line 0 [13:50:38]OFD Sender: Processing packet 4262 [packets to send 2, broken 1] [13:50:38]ProducePacketName [13:50:38]name=ofd_packets/00004262 [13:50:38]OFD Sender: To server: pG, [13:50:38]CommunicateWithHost lk.salyk.kg:30040 [13:50:38]ConnectInit lk.salyk.kg [13:50:38]written 0, free lines is 4095 [13:50:38]Connected sock=10 [13:50:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3A 01 00 00 AE 16 32 01 DB 69 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 B1 BE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A6 10 00 00 35 04 06 00 6B 58 C8 30 F1 9D 09 40 5A 90 39 92 A2 13 [13:50:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 98 EA 47 00 8B 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 39 35 39 33 36 30 10 04 04 00 A6 10 00 00 F4 03 04 00 B1 6A 61 66 B6 04 01 00 00 75 3D 4A 5B 49 DD F9 21 [13:50:38]CommunicateWithHost err = 0 [13:50:38]CheckOFDResponse [13:50:38]1017 (14) - 77093643461234 [13:50:38]1041 (16) - 0000000000959360 [13:50:38]1040 (4) - 4262 [13:50:38]1012 (4) - 06.06.2024 07:52 [13:50:38]1206 (1) - 0 [13:50:38]OFD Sender: Remove packet 4262 [13:50:38]ProducePacketName [13:50:38]name=ofd_packets/00004262 [13:50:38]NVStorageDeleteData [13:50:39]Write to MH i2c: 01 00 00 DD 14 F1 [13:50:39]Write i2c OK [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: 01 [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: 01 07 00 [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: 01 07 00 DD 14 00 00 00 00 00 BB 0C BF [13:50:39]RasterBufferAndPrint [13:50:39]line [13:50:39]line [13:50:39]line [13:50:39]line [13:50:39]line [13:50:39]written 0, free lines is 3263 [13:50:39]MH_Cut [13:50:39]Write to MH i2c: D1 01 00 E4 14 01 CA [13:50:39]Write i2c OK [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: D1 [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: D1 01 00 [13:50:39]MH_I2C_Read... [13:50:39]Read from MH i2c: D1 01 00 E4 14 00 C9 [13:50:39]Write to MH i2c: 01 00 00 E5 14 F9 [13:50:39]Write i2c OK [13:50:39]MH_I2C_Read... [13:50:39]OFD Sender: No OFD packet to send [13:50:39]*** Cut start [13:50:39]*** Partial cut [13:50:39]*** CUTSNS_PIN = 1 [13:50:39]*** CUTSNS_PIN = 0 [13:50:40]*** Brake cut motor [13:50:40]Read from MH i2c: 01 [13:50:40]MH_I2C_Read... [13:50:40]*** Stop cut motor [13:50:40]*** Cut end [13:50:40]Read from MH i2c: 01 07 00 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: 01 07 00 E5 14 00 00 00 00 00 FF 0F 0E [13:50:40]process_action close_receipt done [13:50:40]requested_data is exist [13:50:40]produce_requested_data [13:50:40]requested_item fm.sn is exist - process it [13:50:40]wFMCommunicate request_size=4 [13:50:40]MH_SAM_APDU [13:50:40]CAPDU: 80 11 00 00 [13:50:40]Write to MH i2c: E2 08 00 E6 14 80 11 00 00 00 00 00 00 74 [13:50:40]Write i2c OK [13:50:40]MH_I2C_Read... [13:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:40]Read from MH i2c: E2 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 17 00 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 17 00 E6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 C7 [13:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [13:50:40]wFMCommunicate OK [13:50:40]requested_item fd.num is exist - process it [13:50:40]SAM_PROTO_GetFieldsCounters [13:50:40]wFMCommunicate request_size=4 [13:50:40]MH_SAM_APDU [13:50:40]CAPDU: 80 13 00 00 [13:50:40]Write to MH i2c: E2 08 00 E7 14 80 13 00 00 00 00 00 00 77 [13:50:40]Write i2c OK [13:50:40]MH_I2C_Read... [13:50:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:40]Read from MH i2c: E2 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 62 00 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 62 00 E7 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A6 10 00 00 0E 04 04 00 55 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 16 [13:50:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A6 10 00 00 0E 04 04 00 55 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 [13:50:40]wFMCommunicate OK [13:50:40]SAM_PROTO_GetFieldsCounters done [13:50:40]requested_item shift.num is exist - process it [13:50:40]requested_item shift.opened is exist - process it [13:50:40]req_shift_opened [13:50:40]FM_GetShiftState [13:50:40]SAM_PROTO_GetShiftState [13:50:40]wFMCommunicate request_size=4 [13:50:40]MH_SAM_APDU [13:50:40]CAPDU: 80 13 01 00 [13:50:40]Write to MH i2c: E2 08 00 E8 14 80 13 01 00 00 00 00 00 79 [13:50:40]Write i2c OK [13:50:40]MH_I2C_Read... [13:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:40]Read from MH i2c: E2 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 0E 00 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 0E 00 E8 14 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 32 [13:50:40]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [13:50:40]wFMCommunicate OK [13:50:40]SAM_PROTO_GetShiftState done [13:50:40]FM_GetShiftState done [13:50:40]req_shift_opened done [13:50:40]requested_item shift.open_date is exist - process it [13:50:40]req_shift_open_date [13:50:40]req_shift_open_date done [13:50:40]produce_requested_data done [13:50:40]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4262,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [13:50:40]process_action_free close_receipt [13:50:40]json_value_free [13:50:40]json_value_free done [13:50:40]process_json_proto returns [13:50:40]Send response to host [13:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4262,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [13:50:40]free response buf [13:50:40]execute_script done [13:50:40]execute_script returns [13:50:40]free content buf [13:50:40]Sock 9.Close socket [13:50:40]Sock 9.Thread stoped [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:21]accept exits with 8 [14:00:21]New connection [14:00:21]New thread 3066772836 created [14:00:21]Thread 3066629476 joined [14:00:21]Waiting for new connection... [14:00:21] Sock 8.Parse request [14:00:21]Sock 8.Check first char [14:00:21]Sock 8.First char is OK [14:00:21]request: POST /json_proto HTTP/1.0 [14:00:21]Method: POST [14:00:21]URL: /json_proto [14:00:21]Method is POST - this is cgi request [14:00:21]url: /json_proto [14:00:21]query_string will be loaded in cgi processing [14:00:21]execute_cgi json_proto POST (null) [14:00:21]execute_cgi path=json_proto method=POST [14:00:21]POST find Content-Length [14:00:21]Host: 172.17.56.68:8080 [14:00:21]Content-Length: 897 [14:00:21]Content-Type: application/json [14:00:21] [14:00:21]POST finish read [14:00:21]Found Content-Length = 897 [14:00:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4515", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 4.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 627.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:21]execute_script... [14:00: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 : (3)4515", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 4.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 627.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:21]POST & json_proto [14:00:21]process_json_proto [14:00:21]json parsed OK: [14:00:21]protocol is kg_v1.0 [14:00:21]action value=close_receipt [14:00:21]process_action close_receipt [14:00:21]cmd_close_receipt [14:00:21]MH_GetDate [14:00:21]Write to MH i2c: F0 00 00 E9 14 EC [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: F0 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: F0 09 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: F0 09 00 E9 14 00 FB C0 61 66 3A 8F 60 66 06 [14:00:21]GetLastDocTimeStamp 1717681841 [14:00:21]current date 1717682427 [14:00:21]FM_GetShiftState [14:00:21]SAM_PROTO_GetShiftState [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 13 01 00 [14:00:21]Write to MH i2c: E2 08 00 EA 14 80 13 01 00 00 00 00 00 7B [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 0E 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 0E 00 EA 14 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 34 [14:00:21]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:00:21]wFMCommunicate OK [14:00:21]SAM_PROTO_GetShiftState done [14:00:21]FM_GetShiftState done [14:00:21]opened in 1717632745 [14:00:21]opened+sec_in_day 1717719145 [14:00:21]quantity*price = 56000 [14:00:21]sum+1 = 56001 [14:00:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 627.00 НСП 1% : 5.55 НДС 12% : 66.58 Наличными: 627.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 38 06.06.2024 14:00 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4263 ФПД: 155463144298848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140027&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4263&fm=155463144298848&tin=02508201610067®Number=0000000000145775&sum=62700 0 [14:00:22]StoreToDocumentArchive [14:00:22]shift 85 fd 4263 [14:00:22]save to /storage/0085/doc_00004263 [14:00:22]save last doc name /storage/0085/doc_00004263 to /storage/kkm_last_doc_name [14:00:22]save OK [14:00:22]Clear old archive folders... [14:00:22]ProcessDocumentItem done err = 0, tmpTLVsize=387 [14:00:22]tlvbuf is B6F2C400 [14:00:22]SAM_PROTO_ClearQueue [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 09 00 00 [14:00:22]Write to MH i2c: E2 08 00 F7 14 80 09 00 00 00 00 00 00 7D [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 F7 14 00 90 00 7F [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]SAM_PROTO_ClearQueue done [14:00:22]KKMCreateOFDPacket [14:00:22]OFDProtocolAddRootSTLVToBuf [14:00:22]FM_MakeSignedData [14:00:22]FM_MakeSignedData [14:00:22]SAM_PROTO_SignData [14:00:22]wFMCommunicate request_size=4 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 0D 01 02 [14:00:22]Write to MH i2c: E2 08 00 F8 14 80 0D 01 02 00 00 00 00 85 [14:00:22]Write i2c OK [14:00:22]MH_I2C_Read... [14:00:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:22]Read from MH i2c: E2 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 [14:00:22]MH_I2C_Read... [14:00:22]Read from MH i2c: E2 03 00 F8 14 00 90 00 80 [14:00:22]RAPDU: 90 00 [14:00:22]wFMCommunicate OK [14:00:22]wFMCommunicate request_size=255 [14:00:22]MH_SAM_APDU [14:00:22]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [14:00:22]Write to MH i2c: E2 02 01 F9 14 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 B5 [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:23]Read from MH i2c: E2 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 03 00 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 03 00 F9 14 00 90 00 81 [14:00:23]RAPDU: 90 00 [14:00:23]wFMCommunicate OK [14:00:23]wFMCommunicate request_size=146 [14:00:23]MH_SAM_APDU [14:00:23]CAPDU: 80 0D 02 02 8D 03 06 00 2B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1A 00 00 00 00 07 04 06 00 EC F4 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 FB C0 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A7 10 00 00 35 04 06 00 8D 64 95 7D D9 60 [14:00:23]Write to MH i2c: E2 95 00 FA 14 80 0D 02 02 8D 00 03 06 00 2B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1A 00 00 00 00 07 04 06 00 EC F4 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 FB C0 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A7 10 00 00 35 04 06 00 8D 64 95 7D D9 60 00 00 F5 [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:23]Read from MH i2c: E2 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 03 00 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 03 00 FA 14 00 90 00 82 [14:00:23]RAPDU: 90 00 [14:00:23]wFMCommunicate OK [14:00:23]wFMCommunicate request_size=4 [14:00:23]MH_SAM_APDU [14:00:23]CAPDU: 80 0D 03 02 [14:00:23]Write to MH i2c: E2 08 00 FB 14 80 0D 03 02 00 00 00 00 8A [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:23]Read from MH i2c: E2 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 0B 00 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 0B 00 FB 14 00 36 4F 6D C6 6A EA 19 E1 90 00 91 [14:00:23]RAPDU: 36 4F 6D C6 6A EA 19 E1 90 00 [14:00:23]wFMCommunicate OK [14:00:23]SAM_PROTO_SignData done [14:00:23]FM_MakeSignedData done [14:00:23]CreateOFDProtocolMessage [14:00:23]wFMCommunicate request_size=4 [14:00:23]MH_SAM_APDU [14:00:23]CAPDU: 80 11 00 00 [14:00:23]Write to MH i2c: E2 08 00 FC 14 80 11 00 00 00 00 00 00 8A [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:23]Read from MH i2c: E2 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 17 00 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 17 00 FC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 DD [14:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:00:23]wFMCommunicate OK [14:00:23]CreateOFDProtocolMessage done [14:00:23]OFDSenderStorePacket 4263 [14:00:23]StoreOFDPacket docnum=4263 [14:00:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 97 01 00 00 B6 BB 8F 01 B8 4C 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1A 00 00 00 00 07 04 06 00 EC F4 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 FB C0 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A7 10 00 00 35 04 06 00 8D 64 95 7D D9 60 36 4F 6D C6 6A EA 19 E1 [14:00:23]CheckFolder [14:00:23]dirname=/storage/ofd_packets [14:00:23]CheckFolder done [14:00:23]ProducePacketName [14:00:23]name=ofd_packets/00004263 [14:00:23]NVStorageSaveData ofd_packets/00004263 [14:00:23]File name is /storage/ofd_packets/00004263 [14:00:23]Write 437 bytes [14:00:23]NVStorageSaveData done [14:00:23]OFDSenderStorePacket done [14:00:23]KKMCreateOFDPacket done [14:00:23]NVStorageSaveData kkm_last_timestamp [14:00:23]File name is /storage/kkm_last_timestamp [14:00:23]Write 4 bytes [14:00:23]NVStorageSaveData done [14:00:23]ExternCall_PrintAddStr [14:00:23]wPrintStart [14:00:23]Write to MH i2c: 01 00 00 FD 14 11 [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: 01 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: 01 07 00 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 FF 0F 26 [14:00:23]RasterBufferAndPrint [14:00:23]line Счет N : (3)4515 [14:00:23]line ИНН: 02508201610067 [14:00:23]line Контрольно-Кассовый Чек [14:00:23]line ПРОДАЖА [14:00:23]line Товар: 48747059 [14:00:23]line Сигареты Winston Legend Blue [14:00:23]line 4.000 * 140.00 [14:00:23]line = 560.00 [14:00:23]line НДС 12% НСП 1% [14:00:23]line > о реализуемом товаре [14:00:23]line Товар: 6931280300549 [14:00:23]line Зажигалка Cricket ПН пьезо [14:00:23]line 1.000 * 67.00 [14:00:23]line = 67.00 [14:00:23]line НДС 12% НСП 1% [14:00:23]line > о реализуемом товаре [14:00:23]line ИТОГО: 627.00 [14:00:23]line НСП 1% : 5.55 [14:00:23]line НДС 12% : 66.58 [14:00:23]line Наличными: 627.00 [14:00:23]line Безнал.: 0.00 [14:00:23]line Место: АЗС № 116 "Партнер Нефть" [14:00:23]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:00:23]line СНО: Общий режим [14:00:23]line Чек 38 06.06.2024 14:00 [14:00:23]line Смена: 85 ФФД: 1.0 [14:00:23]line ЗНМ: 0300000233 [14:00:23]line РНМ: 0000000000145775 [14:00:23]line Версия ККМ: v1.0 [14:00:23]line ФМ: 0000000000959360 [14:00:23]line ФД: 4263 [14:00:23]line ФПД: 155463144298848 [14:00:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140027&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4263&fm=155463144298848&tin=02508201610067®Number=0000000000145775&sum=62700 [14:00:23]OFD Sender: Processing packet 4263 [packets to send 2, broken 1] [14:00:23]ProducePacketName [14:00:23]name=ofd_packets/00004263 [14:00:23]OFD Sender: To server: pG, [14:00:23]CommunicateWithHost lk.salyk.kg:30040 [14:00:23]ConnectInit lk.salyk.kg [14:00:23]line 0 [14:00:23]written 0, free lines is 4095 [14:00:23]Connected sock=10 [14:00:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 97 01 00 00 B6 BB 8F 01 B8 4C 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1A 00 00 00 00 07 04 06 00 EC F4 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 FB C0 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A7 10 00 00 35 04 06 00 8D 64 95 7D D9 60 36 4F 6D C6 6A EA 19 E1 [14:00:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 E5 E5 47 00 9A 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 39 35 39 33 36 30 10 04 04 00 A7 10 00 00 F4 03 04 00 FA 6C 61 66 B6 04 01 00 00 B5 8F 82 1A 90 77 2B 4A [14:00:24]CommunicateWithHost err = 0 [14:00:24]CheckOFDResponse [14:00:24]1017 (14) - 77093643461234 [14:00:24]1041 (16) - 0000000000959360 [14:00:24]1040 (4) - 4263 [14:00:24]1012 (4) - 06.06.2024 08:02 [14:00:24]1206 (1) - 0 [14:00:24]OFD Sender: Remove packet 4263 [14:00:24]ProducePacketName [14:00:24]name=ofd_packets/00004263 [14:00:24]NVStorageDeleteData [14:00:24]Write to MH i2c: 01 00 00 2C 15 41 [14:00:24]Write i2c OK [14:00:24]MH_I2C_Read... [14:00:24]Read from MH i2c: 01 [14:00:24]MH_I2C_Read... [14:00:24]Read from MH i2c: 01 07 00 [14:00:24]MH_I2C_Read... [14:00:24]Read from MH i2c: 01 07 00 2C 15 00 00 00 00 00 4C 0C A0 [14:00:24]RasterBufferAndPrint [14:00:24]line [14:00:24]line [14:00:24]line [14:00:24]line [14:00:24]line [14:00:24]written 0, free lines is 3152 [14:00:24]MH_Cut [14:00:24]Write to MH i2c: D1 01 00 33 15 01 1A [14:00:24]Write i2c OK [14:00:24]MH_I2C_Read... [14:00:24]Read from MH i2c: D1 [14:00:24]MH_I2C_Read... [14:00:24]Read from MH i2c: D1 01 00 [14:00:24]MH_I2C_Read... [14:00:24]Read from MH i2c: D1 01 00 33 15 00 19 [14:00:24]Write to MH i2c: 01 00 00 34 15 49 [14:00:24]Write i2c OK [14:00:24]MH_I2C_Read... [14:00:24]OFD Sender: No OFD packet to send [14:00:25]*** Cut start [14:00:25]*** Partial cut [14:00:25]*** CUTSNS_PIN = 1 [14:00:25]*** CUTSNS_PIN = 0 [14:00:25]*** Brake cut motor [14:00:26]Read from MH i2c: 01 [14:00:26]MH_I2C_Read... [14:00:26]*** Stop cut motor [14:00:26]*** Cut end [14:00:26]Read from MH i2c: 01 07 00 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: 01 07 00 34 15 00 00 00 00 00 FF 0F 5E [14:00:26]process_action close_receipt done [14:00:26]requested_data is exist [14:00:26]produce_requested_data [14:00:26]requested_item fm.sn is exist - process it [14:00:26]wFMCommunicate request_size=4 [14:00:26]MH_SAM_APDU [14:00:26]CAPDU: 80 11 00 00 [14:00:26]Write to MH i2c: E2 08 00 35 15 80 11 00 00 00 00 00 00 C4 [14:00:26]Write i2c OK [14:00:26]MH_I2C_Read... [14:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:26]Read from MH i2c: E2 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: E2 17 00 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: E2 17 00 35 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 17 [14:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:00:26]wFMCommunicate OK [14:00:26]requested_item fd.num is exist - process it [14:00:26]SAM_PROTO_GetFieldsCounters [14:00:26]wFMCommunicate request_size=4 [14:00:26]MH_SAM_APDU [14:00:26]CAPDU: 80 13 00 00 [14:00:26]Write to MH i2c: E2 08 00 36 15 80 13 00 00 00 00 00 00 C7 [14:00:26]Write i2c OK [14:00:26]MH_I2C_Read... [14:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:26]Read from MH i2c: E2 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: E2 62 00 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: E2 62 00 36 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A7 10 00 00 0E 04 04 00 55 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 6A [14:00:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A7 10 00 00 0E 04 04 00 55 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 [14:00:26]wFMCommunicate OK [14:00:26]SAM_PROTO_GetFieldsCounters done [14:00:26]requested_item shift.num is exist - process it [14:00:26]requested_item shift.opened is exist - process it [14:00:26]req_shift_opened [14:00:26]FM_GetShiftState [14:00:26]SAM_PROTO_GetShiftState [14:00:26]wFMCommunicate request_size=4 [14:00:26]MH_SAM_APDU [14:00:26]CAPDU: 80 13 01 00 [14:00:26]Write to MH i2c: E2 08 00 37 15 80 13 01 00 00 00 00 00 C9 [14:00:26]Write i2c OK [14:00:26]MH_I2C_Read... [14:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:26]Read from MH i2c: E2 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: E2 0E 00 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: E2 0E 00 37 15 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 82 [14:00:26]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:00:26]wFMCommunicate OK [14:00:26]SAM_PROTO_GetShiftState done [14:00:26]FM_GetShiftState done [14:00:26]req_shift_opened done [14:00:26]requested_item shift.open_date is exist - process it [14:00:26]req_shift_open_date [14:00:26]req_shift_open_date done [14:00:26]produce_requested_data done [14:00:26]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4263,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:00:26]process_action_free close_receipt [14:00:26]json_value_free [14:00:26]json_value_free done [14:00:26]process_json_proto returns [14:00:26]Send response to host [14:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4263,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:00:26]free response buf [14:00:26]execute_script done [14:00:26]execute_script returns [14:00:26]free content buf [14:00:26]Sock 8.Close socket [14:00:26]Sock 8.Thread stoped [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:41]accept exits with 9 [14:02:41]New connection [14:02:41]New thread 3066629476 created [14:02:41]Thread 3066772836 joined [14:02:41]Waiting for new connection... [14:02:41] Sock 9.Parse request [14:02:41]Sock 9.Check first char [14:02:41]Sock 9.First char is OK [14:02:41]request: POST /json_proto HTTP/1.0 [14:02:41]Method: POST [14:02:41]URL: /json_proto [14:02:41]Method is POST - this is cgi request [14:02:41]url: /json_proto [14:02:41]query_string will be loaded in cgi processing [14:02:41]execute_cgi json_proto POST (null) [14:02:41]execute_cgi path=json_proto method=POST [14:02:41]POST find Content-Length [14:02:41]Host: 172.17.56.68:8080 [14:02:41]Content-Length: 803 [14:02:41]Content-Type: application/json [14:02:41] [14:02:41]POST finish read [14:02:41]Found Content-Length = 803 [14:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4516", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:41]execute_script... [14:02: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 : (3)4516", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:41]POST & json_proto [14:02:41]process_json_proto [14:02:41]json parsed OK: [14:02:41]protocol is kg_v1.0 [14:02:41]action value=close_receipt [14:02:41]process_action close_receipt [14:02:41]cmd_close_receipt [14:02:41]MH_GetDate [14:02:41]Write to MH i2c: F0 00 00 38 15 3C [14:02:41]Write i2c OK [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: F0 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: F0 09 00 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: F0 09 00 38 15 00 86 C1 61 66 3A 8F 60 66 E2 [14:02:41]GetLastDocTimeStamp 1717682427 [14:02:41]current date 1717682566 [14:02:41]FM_GetShiftState [14:02:41]SAM_PROTO_GetShiftState [14:02:41]wFMCommunicate request_size=4 [14:02:41]MH_SAM_APDU [14:02:41]CAPDU: 80 13 01 00 [14:02:41]Write to MH i2c: E2 08 00 39 15 80 13 01 00 00 00 00 00 CB [14:02:41]Write i2c OK [14:02:41]MH_I2C_Read... [14:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:41]Read from MH i2c: E2 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 0E 00 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 0E 00 39 15 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 84 [14:02:41]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:02:41]wFMCommunicate OK [14:02:41]SAM_PROTO_GetShiftState done [14:02:41]FM_GetShiftState done [14:02:41]opened in 1717632745 [14:02:41]opened+sec_in_day 1717719145 [14:02:41]quantity*price = 10000 [14:02:41]sum+1 = 10001 [14:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 0.00 Безнал.: 100.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 39 06.06.2024 14:02 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 Платежная система: О! деньги ФМ: 0000000000959360 ФД: 4264 ФПД: 73613572066963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140246&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4264&fm=73613572066963&tin=02508201610067®Number=0000000000145775&sum=10000 0 [14:02:42]StoreToDocumentArchive [14:02:42]shift 85 fd 4264 [14:02:42]save to /storage/0085/doc_00004264 [14:02:42]save last doc name /storage/0085/doc_00004264 to /storage/kkm_last_doc_name [14:02:42]save OK [14:02:42]Clear old archive folders... [14:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:02:42]tlvbuf is B6E7C530 [14:02:42]SAM_PROTO_ClearQueue [14:02:42]wFMCommunicate request_size=4 [14:02:42]MH_SAM_APDU [14:02:42]CAPDU: 80 09 00 00 [14:02:42]Write to MH i2c: E2 08 00 46 15 80 09 00 00 00 00 00 00 CD [14:02:42]Write i2c OK [14:02:42]MH_I2C_Read... [14:02:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:42]Read from MH i2c: E2 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 46 15 00 90 00 CF [14:02:42]RAPDU: 90 00 [14:02:42]wFMCommunicate OK [14:02:42]SAM_PROTO_ClearQueue done [14:02:42]KKMCreateOFDPacket [14:02:42]OFDProtocolAddRootSTLVToBuf [14:02:42]FM_MakeSignedData [14:02:42]FM_MakeSignedData [14:02:42]SAM_PROTO_SignData [14:02:42]wFMCommunicate request_size=4 [14:02:42]MH_SAM_APDU [14:02:42]CAPDU: 80 0D 01 02 [14:02:42]Write to MH i2c: E2 08 00 47 15 80 0D 01 02 00 00 00 00 D5 [14:02:42]Write i2c OK [14:02:42]MH_I2C_Read... [14:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:42]Read from MH i2c: E2 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [14:02:42]RAPDU: 90 00 [14:02:42]wFMCommunicate OK [14:02:42]wFMCommunicate request_size=255 [14:02:42]MH_SAM_APDU [14:02:42]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 86 C1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 [14:02:42]Write to MH i2c: E2 02 01 48 15 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 86 C1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 B1 [14:02:42]Write i2c OK [14:02:42]MH_I2C_Read... [14:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:42]Read from MH i2c: E2 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [14:02:42]RAPDU: 90 00 [14:02:42]wFMCommunicate OK [14:02:42]wFMCommunicate request_size=31 [14:02:42]MH_SAM_APDU [14:02:42]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 30 10 04 04 00 A8 10 00 00 35 04 06 00 42 F3 7E D0 4E 93 [14:02:42]Write to MH i2c: E2 22 00 49 15 80 0D 02 02 1A 00 30 30 39 35 39 33 36 30 10 04 04 00 A8 10 00 00 35 04 06 00 42 F3 7E D0 4E 93 00 00 1F [14:02:42]Write i2c OK [14:02:42]MH_I2C_Read... [14:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:42]Read from MH i2c: E2 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [14:02:42]RAPDU: 90 00 [14:02:42]wFMCommunicate OK [14:02:42]wFMCommunicate request_size=4 [14:02:42]MH_SAM_APDU [14:02:42]CAPDU: 80 0D 03 02 [14:02:42]Write to MH i2c: E2 08 00 4A 15 80 0D 03 02 00 00 00 00 DA [14:02:42]Write i2c OK [14:02:42]MH_I2C_Read... [14:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:43]Read from MH i2c: E2 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 0B 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 0B 00 4A 15 00 61 96 5F 10 C6 8A E7 7B 90 00 F3 [14:02:43]RAPDU: 61 96 5F 10 C6 8A E7 7B 90 00 [14:02:43]wFMCommunicate OK [14:02:43]SAM_PROTO_SignData done [14:02:43]FM_MakeSignedData done [14:02:43]CreateOFDProtocolMessage [14:02:43]wFMCommunicate request_size=4 [14:02:43]MH_SAM_APDU [14:02:43]CAPDU: 80 11 00 00 [14:02:43]Write to MH i2c: E2 08 00 4B 15 80 11 00 00 00 00 00 00 DA [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:43]Read from MH i2c: E2 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 17 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 17 00 4B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 2D [14:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:02:43]wFMCommunicate OK [14:02:43]CreateOFDProtocolMessage done [14:02:43]OFDSenderStorePacket 4264 [14:02:43]StoreOFDPacket docnum=4264 [14:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 24 01 00 00 81 EE 1C 01 66 41 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 86 C1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A8 10 00 00 35 04 06 00 42 F3 7E D0 4E 93 61 96 5F 10 C6 8A E7 7B [14:02:43]CheckFolder [14:02:43]dirname=/storage/ofd_packets [14:02:43]CheckFolder done [14:02:43]ProducePacketName [14:02:43]name=ofd_packets/00004264 [14:02:43]NVStorageSaveData ofd_packets/00004264 [14:02:43]File name is /storage/ofd_packets/00004264 [14:02:43]Write 322 bytes [14:02:43]NVStorageSaveData done [14:02:43]OFDSenderStorePacket done [14:02:43]KKMCreateOFDPacket done [14:02:43]NVStorageSaveData kkm_last_timestamp [14:02:43]File name is /storage/kkm_last_timestamp [14:02:43]Write 4 bytes [14:02:43]NVStorageSaveData done [14:02:43]ExternCall_PrintAddStr [14:02:43]wPrintStart [14:02:43]Write to MH i2c: 01 00 00 4C 15 61 [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 07 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 FF 0F 76 [14:02:43]RasterBufferAndPrint [14:02:43]line Счет N : (3)4516 [14:02:43]line ИНН: 02508201610067 [14:02:43]line Контрольно-Кассовый Чек [14:02:43]line ПРОДАЖА [14:02:43]line Товар: 4700000160051 [14:02:43]line Вода Ыссык Ата 1л [14:02:43]line 2.000 * 50.00 [14:02:43]line = 100.00 [14:02:43]line НДС 12% НСП 1% [14:02:43]line > о реализуемом товаре [14:02:43]line ИТОГО: 100.00 [14:02:43]line НСП 1% : 0.88 [14:02:43]line НДС 12% : 10.62 [14:02:43]line Наличными: 0.00 [14:02:43]line Безнал.: 100.00 [14:02:43]line Место: АЗС № 116 "Партнер Нефть" [14:02:43]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:02:43]line СНО: Общий режим [14:02:43]line Чек 39 06.06.2024 14:02 [14:02:43]line Смена: 85 ФФД: 1.0 [14:02:43]line ЗНМ: 0300000233 [14:02:43]line РНМ: 0000000000145775 [14:02:43]line Версия ККМ: v1.0 [14:02:43]line Платежная система: О! деньги [14:02:43]line ФМ: 0000000000959360 [14:02:43]line ФД: 4264 [14:02:43]line ФПД: 73613572066963 [14:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140246&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4264&fm=73613572066963&tin=02508201610067®Number=0000000000145775&sum=10000 [14:02:43]line 0 [14:02:43]OFD Sender: Processing packet 4264 [packets to send 2, broken 1] [14:02:43]ProducePacketName [14:02:43]name=ofd_packets/00004264 [14:02:43]OFD Sender: To server: pG, [14:02:43]CommunicateWithHost lk.salyk.kg:30040 [14:02:43]ConnectInit lk.salyk.kg [14:02:43]written 0, free lines is 4095 [14:02:43]Connected sock=10 [14:02:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 24 01 00 00 81 EE 1C 01 66 41 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 86 C1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A8 10 00 00 35 04 06 00 42 F3 7E D0 4E 93 61 96 5F 10 C6 8A E7 7B [14:02:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 DF C7 47 00 F2 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A8 10 00 00 F4 03 04 00 86 6D 61 66 B6 04 01 00 00 B2 06 8E E7 E9 21 B6 C7 [14:02:43]CommunicateWithHost err = 0 [14:02:43]CheckOFDResponse [14:02:43]1017 (14) - 77093643461234 [14:02:43]1041 (16) - 0000000000959360 [14:02:43]1040 (4) - 4264 [14:02:43]1012 (4) - 06.06.2024 08:04 [14:02:43]1206 (1) - 0 [14:02:43]OFD Sender: Remove packet 4264 [14:02:43]ProducePacketName [14:02:43]name=ofd_packets/00004264 [14:02:43]NVStorageDeleteData [14:02:43]Write to MH i2c: 01 00 00 76 15 8B [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 07 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 07 00 76 15 00 00 00 00 00 9E 0C 3C [14:02:43]RasterBufferAndPrint [14:02:43]line [14:02:43]line [14:02:43]line [14:02:43]line [14:02:43]line [14:02:43]written 0, free lines is 3236 [14:02:43]MH_Cut [14:02:43]Write to MH i2c: D1 01 00 7D 15 01 64 [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: D1 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: D1 01 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: D1 01 00 7D 15 00 63 [14:02:43]Write to MH i2c: 01 00 00 7E 15 93 [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:44]OFD Sender: No OFD packet to send [14:02:44]*** Cut start [14:02:44]*** Partial cut [14:02:44]*** CUTSNS_PIN = 1 [14:02:44]*** CUTSNS_PIN = 0 [14:02:45]*** Brake cut motor [14:02:45]Read from MH i2c: 01 [14:02:45]MH_I2C_Read... [14:02:45]*** Stop cut motor [14:02:45]Read from MH i2c: *** Cut end [14:02:45]01 07 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: 01 07 00 7E 15 00 00 00 00 00 FF 0F A8 [14:02:45]process_action close_receipt done [14:02:45]requested_data is exist [14:02:45]produce_requested_data [14:02:45]requested_item fm.sn is exist - process it [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 11 00 00 [14:02:45]Write to MH i2c: E2 08 00 7F 15 80 11 00 00 00 00 00 00 0E [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 17 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 17 00 7F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 61 [14:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:02:45]wFMCommunicate OK [14:02:45]requested_item fd.num is exist - process it [14:02:45]SAM_PROTO_GetFieldsCounters [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 13 00 00 [14:02:45]Write to MH i2c: E2 08 00 80 15 80 13 00 00 00 00 00 00 11 [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 62 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 62 00 80 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A8 10 00 00 0E 04 04 00 55 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 B8 [14:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A8 10 00 00 0E 04 04 00 55 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 [14:02:45]wFMCommunicate OK [14:02:45]SAM_PROTO_GetFieldsCounters done [14:02:45]requested_item shift.num is exist - process it [14:02:45]requested_item shift.opened is exist - process it [14:02:45]req_shift_opened [14:02:45]FM_GetShiftState [14:02:45]SAM_PROTO_GetShiftState [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 13 01 00 [14:02:45]Write to MH i2c: E2 08 00 81 15 80 13 01 00 00 00 00 00 13 [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 0E 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 0E 00 81 15 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 CC [14:02:45]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:02:45]wFMCommunicate OK [14:02:45]SAM_PROTO_GetShiftState done [14:02:45]FM_GetShiftState done [14:02:45]req_shift_opened done [14:02:45]requested_item shift.open_date is exist - process it [14:02:45]req_shift_open_date [14:02:45]req_shift_open_date done [14:02:45]produce_requested_data done [14:02:45]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4264,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:02:45]process_action_free close_receipt [14:02:45]json_value_free [14:02:45]json_value_free done [14:02:45]process_json_proto returns [14:02:45]Send response to host [14:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4264,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:02:45]free response buf [14:02:45]execute_script done [14:02:45]execute_script returns [14:02:45]free content buf [14:02:45]Sock 9.Close socket [14:02:45]Sock 9.Thread stoped [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:04]accept exits with 8 [14:04:04]New connection [14:04:04]New thread 3066772836 created [14:04:04]Thread 3066629476 joined [14:04:04]Waiting for new connection... [14:04:04] Sock 8.Parse request [14:04:04]Sock 8.Check first char [14:04:04]Sock 8.First char is OK [14:04:04]request: POST /json_proto HTTP/1.0 [14:04:04]Method: POST [14:04:04]URL: /json_proto [14:04:04]Method is POST - this is cgi request [14:04:04]url: /json_proto [14:04:04]query_string will be loaded in cgi processing [14:04:04]execute_cgi json_proto POST (null) [14:04:04]execute_cgi path=json_proto method=POST [14:04:04]POST find Content-Length [14:04:04]Host: 172.17.56.68:8080 [14:04:04]Content-Length: 647 [14:04:04]Content-Type: application/json [14:04:04] [14:04:04]POST finish read [14:04:04]Found Content-Length = 647 [14:04:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4517", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:04]execute_script... [14:04:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4517", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:04]POST & json_proto [14:04:04]process_json_proto [14:04:04]json parsed OK: [14:04:04]protocol is kg_v1.0 [14:04:04]action value=close_receipt [14:04:04]process_action close_receipt [14:04:04]cmd_close_receipt [14:04:04]MH_GetDate [14:04:04]Write to MH i2c: F0 00 00 82 15 86 [14:04:04]Write i2c OK [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: F0 [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: F0 09 00 [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: F0 09 00 82 15 00 D9 C1 61 66 3A 8F 60 66 7F [14:04:04]GetLastDocTimeStamp 1717682566 [14:04:04]current date 1717682649 [14:04:04]FM_GetShiftState [14:04:04]SAM_PROTO_GetShiftState [14:04:04]wFMCommunicate request_size=4 [14:04:04]MH_SAM_APDU [14:04:04]CAPDU: 80 13 01 00 [14:04:04]Write to MH i2c: E2 08 00 83 15 80 13 01 00 00 00 00 00 15 [14:04:04]Write i2c OK [14:04:04]MH_I2C_Read... [14:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:04]Read from MH i2c: E2 [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: E2 0E 00 [14:04:04]MH_I2C_Read... [14:04:04]Read from MH i2c: E2 0E 00 83 15 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 CE [14:04:04]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:04:04]wFMCommunicate OK [14:04:04]SAM_PROTO_GetShiftState done [14:04:04]FM_GetShiftState done [14:04:04]opened in 1717632745 [14:04:04]opened+sec_in_day 1717719145 [14:04:04]quantity*price = 9500 [14:04:04]sum+1 = 9501 [14:04:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 40 06.06.2024 14:04 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4265 ФПД: 157728162955776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140409&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4265&fm=157728162955776&tin=02508201610067®Number=0000000000145775&sum=9500 0 [14:04:05]StoreToDocumentArchive [14:04:05]shift 85 fd 4265 [14:04:05]save to /storage/0085/doc_00004265 [14:04:05]save last doc name /storage/0085/doc_00004265 to /storage/kkm_last_doc_name [14:04:05]save OK [14:04:05]Clear old archive folders... [14:04:05]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:04:05]tlvbuf is B6E7C090 [14:04:05]SAM_PROTO_ClearQueue [14:04:05]wFMCommunicate request_size=4 [14:04:05]MH_SAM_APDU [14:04:05]CAPDU: 80 09 00 00 [14:04:05]Write to MH i2c: E2 08 00 90 15 80 09 00 00 00 00 00 00 17 [14:04:05]Write i2c OK [14:04:05]MH_I2C_Read... [14:04:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:05]Read from MH i2c: E2 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 03 00 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [14:04:05]RAPDU: 90 00 [14:04:05]wFMCommunicate OK [14:04:05]SAM_PROTO_ClearQueue done [14:04:05]KKMCreateOFDPacket [14:04:05]OFDProtocolAddRootSTLVToBuf [14:04:05]FM_MakeSignedData [14:04:05]FM_MakeSignedData [14:04:05]SAM_PROTO_SignData [14:04:05]wFMCommunicate request_size=4 [14:04:05]MH_SAM_APDU [14:04:05]CAPDU: 80 0D 01 02 [14:04:05]Write to MH i2c: E2 08 00 91 15 80 0D 01 02 00 00 00 00 1F [14:04:05]Write i2c OK [14:04:05]MH_I2C_Read... [14:04:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:05]Read from MH i2c: E2 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 03 00 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [14:04:05]RAPDU: 90 00 [14:04:05]wFMCommunicate OK [14:04:05]wFMCommunicate request_size=255 [14:04:05]MH_SAM_APDU [14:04:05]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D9 C1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 [14:04:05]Write to MH i2c: E2 02 01 92 15 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D9 C1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 00 00 3C [14:04:05]Write i2c OK [14:04:05]MH_I2C_Read... [14:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:05]Read from MH i2c: E2 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 03 00 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [14:04:05]RAPDU: 90 00 [14:04:05]wFMCommunicate OK [14:04:05]wFMCommunicate request_size=43 [14:04:05]MH_SAM_APDU [14:04:05]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A9 10 00 00 35 04 06 00 8F 73 F3 1F C2 00 [14:04:05]Write to MH i2c: E2 2E 00 93 15 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A9 10 00 00 35 04 06 00 8F 73 F3 1F C2 00 00 00 99 [14:04:05]Write i2c OK [14:04:05]MH_I2C_Read... [14:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:05]Read from MH i2c: E2 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 03 00 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [14:04:05]RAPDU: 90 00 [14:04:05]wFMCommunicate OK [14:04:05]wFMCommunicate request_size=4 [14:04:05]MH_SAM_APDU [14:04:05]CAPDU: 80 0D 03 02 [14:04:05]Write to MH i2c: E2 08 00 94 15 80 0D 03 02 00 00 00 00 24 [14:04:05]Write i2c OK [14:04:05]MH_I2C_Read... [14:04:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:05]Read from MH i2c: E2 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 0B 00 [14:04:05]MH_I2C_Read... [14:04:05]Read from MH i2c: E2 0B 00 94 15 00 C9 0E 30 2E 7D BD 03 77 90 00 0E [14:04:05]RAPDU: C9 0E 30 2E 7D BD 03 77 90 00 [14:04:05]wFMCommunicate OK [14:04:05]SAM_PROTO_SignData done [14:04:05]FM_MakeSignedData done [14:04:05]CreateOFDProtocolMessage [14:04:05]wFMCommunicate request_size=4 [14:04:05]MH_SAM_APDU [14:04:05]CAPDU: 80 11 00 00 [14:04:05]Write to MH i2c: E2 08 00 95 15 80 11 00 00 00 00 00 00 24 [14:04:05]Write i2c OK [14:04:05]MH_I2C_Read... [14:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:06]Read from MH i2c: E2 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 17 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: E2 17 00 95 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 77 [14:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:04:06]wFMCommunicate OK [14:04:06]CreateOFDProtocolMessage done [14:04:06]OFDSenderStorePacket 4265 [14:04:06]StoreOFDPacket docnum=4265 [14:04:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 30 01 00 00 94 7F 28 01 69 8C 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D9 C1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A9 10 00 00 35 04 06 00 8F 73 F3 1F C2 00 C9 0E 30 2E 7D BD 03 77 [14:04:06]CheckFolder [14:04:06]dirname=/storage/ofd_packets [14:04:06]CheckFolder done [14:04:06]ProducePacketName [14:04:06]name=ofd_packets/00004265 [14:04:06]NVStorageSaveData ofd_packets/00004265 [14:04:06]File name is /storage/ofd_packets/00004265 [14:04:06]Write 334 bytes [14:04:06]NVStorageSaveData done [14:04:06]OFDSenderStorePacket done [14:04:06]KKMCreateOFDPacket done [14:04:06]NVStorageSaveData kkm_last_timestamp [14:04:06]File name is /storage/kkm_last_timestamp [14:04:06]Write 4 bytes [14:04:06]NVStorageSaveData done [14:04:06]ExternCall_PrintAddStr [14:04:06]wPrintStart [14:04:06]Write to MH i2c: 01 00 00 96 15 AB [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: 01 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: 01 07 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: 01 07 00 96 15 00 00 00 00 00 FF 0F C0 [14:04:06]RasterBufferAndPrint [14:04:06]line Счет N : (3)4517 [14:04:06]line ИНН: 02508201610067 [14:04:06]line Контрольно-Кассовый Чек [14:04:06]line ПРОДАЖА [14:04:06]line Товар: 2000036190018 [14:04:06]line Кофе Американо XL(GABB TRADE) [14:04:06]line 1.000 * 95.00 [14:04:06]line = 95.00 [14:04:06]line НДС 12% НСП 1% [14:04:06]line > о реализуемом товаре [14:04:06]line ИТОГО: 95.00 [14:04:06]line НСП 1% : 0.84 [14:04:06]line НДС 12% : 10.09 [14:04:06]line Наличными: 95.00 [14:04:06]line Безнал.: 0.00 [14:04:06]line Место: АЗС № 116 "Партнер Нефть" [14:04:06]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:04:06]line СНО: Общий режим [14:04:06]line Чек 40 06.06.2024 14:04 [14:04:06]line Смена: 85 ФФД: 1.0 [14:04:06]line ЗНМ: 0300000233 [14:04:06]line РНМ: 0000000000145775 [14:04:06]line Версия ККМ: v1.0 [14:04:06]line ФМ: 0000000000959360 [14:04:06]line ФД: 4265 [14:04:06]line ФПД: 157728162955776 [14:04:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140409&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4265&fm=157728162955776&tin=02508201610067®Number=0000000000145775&sum=9500 [14:04:06]line 0 [14:04:06]OFD Sender: Processing packet 4265 [packets to send 2, broken 1] [14:04:06]ProducePacketName [14:04:06]name=ofd_packets/00004265 [14:04:06]OFD Sender: To server: pG, [14:04:06]CommunicateWithHost lk.salyk.kg:30040 [14:04:06]ConnectInit lk.salyk.kg [14:04:06]written 0, free lines is 4095 [14:04:06]Connected sock=11 [14:04:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 30 01 00 00 94 7F 28 01 69 8C 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D9 C1 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 A9 10 00 00 35 04 06 00 8F 73 F3 1F C2 00 C9 0E 30 2E 7D BD 03 77 [14:04:06]Write to MH i2c: 01 00 00 BF 15 D4 [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: 01 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: 01 07 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: 01 07 00 BF 15 00 00 00 00 00 BE 0C A5 [14:04:06]RasterBufferAndPrint [14:04:06]line [14:04:06]line [14:04:06]line [14:04:06]line [14:04:06]line [14:04:06]written 0, free lines is 3267 [14:04:06]MH_Cut [14:04:06]Write to MH i2c: D1 01 00 C6 15 01 AD [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: D1 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: D1 01 00 [14:04:06]MH_I2C_Read... [14:04:06]Read from MH i2c: D1 01 00 C6 15 00 AC [14:04:06]Write to MH i2c: 01 00 00 C7 15 DC [14:04:06]Write i2c OK [14:04:06]MH_I2C_Read... [14:04:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 0C 18 47 00 C4 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 39 35 39 33 36 30 10 04 04 00 A9 10 00 00 F4 03 04 00 D9 6D 61 66 B6 04 01 00 00 54 A3 97 5A 52 83 20 36 [14:04:06]CommunicateWithHost err = 0 [14:04:06]CheckOFDResponse [14:04:06]1017 (14) - 77093643461234 [14:04:06]1041 (16) - 0000000000959360 [14:04:06]1040 (4) - 4265 [14:04:06]1012 (4) - 06.06.2024 08:05 [14:04:06]1206 (1) - 0 [14:04:06]OFD Sender: Remove packet 4265 [14:04:06]ProducePacketName [14:04:06]name=ofd_packets/00004265 [14:04:06]NVStorageDeleteData [14:04:07]OFD Sender: No OFD packet to send [14:04:07]*** Cut start [14:04:07]*** Partial cut [14:04:07]*** CUTSNS_PIN = 1 [14:04:07]*** CUTSNS_PIN = 0 [14:04:07]*** Brake cut motor [14:04:08]Read from MH i2c: 01 [14:04:08]MH_I2C_Read... [14:04:08]*** Stop cut motor [14:04:08]*** Cut end [14:04:08]Read from MH i2c: 01 07 00 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: 01 07 00 C7 15 00 00 00 00 00 FF 0F F1 [14:04:08]process_action close_receipt done [14:04:08]requested_data is exist [14:04:08]produce_requested_data [14:04:08]requested_item fm.sn is exist - process it [14:04:08]wFMCommunicate request_size=4 [14:04:08]MH_SAM_APDU [14:04:08]CAPDU: 80 11 00 00 [14:04:08]Write to MH i2c: E2 08 00 C8 15 80 11 00 00 00 00 00 00 57 [14:04:08]Write i2c OK [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: E2 [14:04:08]MH_I2C_Read... [14:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:08]Read from MH i2c: E2 17 00 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: E2 17 00 C8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 AA [14:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:04:08]wFMCommunicate OK [14:04:08]requested_item fd.num is exist - process it [14:04:08]SAM_PROTO_GetFieldsCounters [14:04:08]wFMCommunicate request_size=4 [14:04:08]MH_SAM_APDU [14:04:08]CAPDU: 80 13 00 00 [14:04:08]Write to MH i2c: E2 08 00 C9 15 80 13 00 00 00 00 00 00 5A [14:04:08]Write i2c OK [14:04:08]MH_I2C_Read... [14:04:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:08]Read from MH i2c: E2 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: E2 62 00 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: E2 62 00 C9 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A9 10 00 00 0E 04 04 00 55 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 05 [14:04:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 A9 10 00 00 0E 04 04 00 55 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 [14:04:08]wFMCommunicate OK [14:04:08]SAM_PROTO_GetFieldsCounters done [14:04:08]requested_item shift.num is exist - process it [14:04:08]requested_item shift.opened is exist - process it [14:04:08]req_shift_opened [14:04:08]FM_GetShiftState [14:04:08]SAM_PROTO_GetShiftState [14:04:08]wFMCommunicate request_size=4 [14:04:08]MH_SAM_APDU [14:04:08]CAPDU: 80 13 01 00 [14:04:08]Write to MH i2c: E2 08 00 CA 15 80 13 01 00 00 00 00 00 5C [14:04:08]Write i2c OK [14:04:08]MH_I2C_Read... [14:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:08]Read from MH i2c: E2 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: E2 0E 00 [14:04:08]MH_I2C_Read... [14:04:08]Read from MH i2c: E2 0E 00 CA 15 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 15 [14:04:08]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:04:08]wFMCommunicate OK [14:04:08]SAM_PROTO_GetShiftState done [14:04:08]FM_GetShiftState done [14:04:08]req_shift_opened done [14:04:08]requested_item shift.open_date is exist - process it [14:04:08]req_shift_open_date [14:04:08]req_shift_open_date done [14:04:08]produce_requested_data done [14:04:08]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4265,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:04:08]process_action_free close_receipt [14:04:08]json_value_free [14:04:08]json_value_free done [14:04:08]process_json_proto returns [14:04:08]Send response to host [14:04:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4265,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:04:08]free response buf [14:04:08]execute_script done [14:04:08]execute_script returns [14:04:08]free content buf [14:04:08]Sock 8.Close socket [14:04:08]Sock 8.Thread stoped [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:47]accept exits with 9 [14:06:47]New connection [14:06:47]New thread 3066629476 created [14:06:47]Thread 3066772836 joined [14:06:47]Waiting for new connection... [14:06:47] Sock 9.Parse request [14:06:47]Sock 9.Check first char [14:06:47]Sock 9.First char is OK [14:06:47]request: POST /json_proto HTTP/1.0 [14:06:47]Method: POST [14:06:47]URL: /json_proto [14:06:47]Method is POST - this is cgi request [14:06:47]url: /json_proto [14:06:47]query_string will be loaded in cgi processing [14:06:47]execute_cgi json_proto POST (null) [14:06:47]execute_cgi path=json_proto method=POST [14:06:47]POST find Content-Length [14:06:47]Host: 172.17.56.68:8080 [14:06:47]Content-Length: 971 [14:06:47]Content-Type: application/json [14:06:47] [14:06:47]POST finish read [14:06:47]Found Content-Length = 971 [14:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4518", "tax_sys" : 0, "items" : [ { "code": "4607120858977", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u043A\u0440\u0430\u0431 40\u0433", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681390", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041F\u0410\u041F\u0420\u0418\u041A\u0410 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 136.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:47]execute_script... [14:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4518", "tax_sys" : 0, "items" : [ { "code": "4607120858977", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u043A\u0440\u0430\u0431 40\u0433", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681390", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041F\u0410\u041F\u0420\u0418\u041A\u0410 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 136.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:47]POST & json_proto [14:06:47]process_json_proto [14:06:47]json parsed OK: [14:06:47]protocol is kg_v1.0 [14:06:47]action value=close_receipt [14:06:47]process_action close_receipt [14:06:47]cmd_close_receipt [14:06:47]MH_GetDate [14:06:47]Write to MH i2c: F0 00 00 CB 15 CF [14:06:47]Write i2c OK [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: F0 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: F0 09 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: F0 09 00 CB 15 00 7D C2 61 66 3A 8F 60 66 6D [14:06:47]GetLastDocTimeStamp 1717682649 [14:06:47]current date 1717682813 [14:06:47]FM_GetShiftState [14:06:47]SAM_PROTO_GetShiftState [14:06:47]wFMCommunicate request_size=4 [14:06:47]MH_SAM_APDU [14:06:47]CAPDU: 80 13 01 00 [14:06:47]Write to MH i2c: E2 08 00 CC 15 80 13 01 00 00 00 00 00 5E [14:06:47]Write i2c OK [14:06:47]MH_I2C_Read... [14:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:47]Read from MH i2c: E2 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 CC 15 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 17 [14:06:47]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:06:47]wFMCommunicate OK [14:06:47]SAM_PROTO_GetShiftState done [14:06:47]FM_GetShiftState done [14:06:47]opened in 1717632745 [14:06:47]opened+sec_in_day 1717719145 [14:06:47]quantity*price = 4100 [14:06:47]sum+1 = 4101 [14:06:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681390 ЧИПСЫ SLANG СО ВКУСОМ ПАПРИКА 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 136.00 НСП 1% : 1.20 НДС 12% : 14.44 Наличными: 136.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 41 06.06.2024 14:06 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4266 ФПД: 224578809905208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140653&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4266&fm=224578809905208&tin=02508201610067®Number=0000000000145775&sum=13600 0 [14:06:48]StoreToDocumentArchive [14:06:48]shift 85 fd 4266 [14:06:48]save to /storage/0085/doc_00004266 [14:06:48]save last doc name /storage/0085/doc_00004266 to /storage/kkm_last_doc_name [14:06:48]save OK [14:06:48]Clear old archive folders... [14:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=407 [14:06:48]tlvbuf is 01973320 [14:06:48]SAM_PROTO_ClearQueue [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 09 00 00 [14:06:48]Write to MH i2c: E2 08 00 D9 15 80 09 00 00 00 00 00 00 60 [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 D9 15 00 90 00 62 [14:06:48]RAPDU: 90 00 [14:06:48]wFMCommunicate OK [14:06:48]SAM_PROTO_ClearQueue done [14:06:48]KKMCreateOFDPacket [14:06:48]OFDProtocolAddRootSTLVToBuf [14:06:48]FM_MakeSignedData [14:06:48]FM_MakeSignedData [14:06:48]SAM_PROTO_SignData [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 0D 01 02 [14:06:48]Write to MH i2c: E2 08 00 DA 15 80 0D 01 02 00 00 00 00 68 [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [14:06:48]RAPDU: 90 00 [14:06:48]wFMCommunicate OK [14:06:48]wFMCommunicate request_size=255 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [14:06:48]Write to MH i2c: E2 02 01 DB 15 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 2A [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]wFMCommunicate request_size=166 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 0D 02 02 A1 20 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 05 00 00 00 00 07 04 06 00 20 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7D C2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AA 10 00 00 35 04 06 00 CC 40 D4 30 40 38 [14:06:49]Write to MH i2c: E2 A9 00 DC 15 80 0D 02 02 A1 00 20 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 05 00 00 00 00 07 04 06 00 20 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7D C2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AA 10 00 00 35 04 06 00 CC 40 D4 30 40 38 00 00 7F [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]wFMCommunicate request_size=4 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 0D 03 02 [14:06:49]Write to MH i2c: E2 08 00 DD 15 80 0D 03 02 00 00 00 00 6D [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 0B 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 0B 00 DD 15 00 92 B7 79 7A 53 71 82 7E 90 00 6E [14:06:49]RAPDU: 92 B7 79 7A 53 71 82 7E 90 00 [14:06:49]wFMCommunicate OK [14:06:49]SAM_PROTO_SignData done [14:06:49]FM_MakeSignedData done [14:06:49]CreateOFDProtocolMessage [14:06:49]wFMCommunicate request_size=4 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 11 00 00 [14:06:49]Write to MH i2c: E2 08 00 DE 15 80 11 00 00 00 00 00 00 6D [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 17 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 17 00 DE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 C0 [14:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:06:49]wFMCommunicate OK [14:06:49]CreateOFDProtocolMessage done [14:06:49]OFDSenderStorePacket 4266 [14:06:49]StoreOFDPacket docnum=4266 [14:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 AB 01 00 00 3C 40 A3 01 D8 48 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 05 00 00 00 00 07 04 06 00 20 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7D C2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AA 10 00 00 35 04 06 00 CC 40 D4 30 40 38 92 B7 79 7A 53 71 82 7E [14:06:49]CheckFolder [14:06:49]dirname=/storage/ofd_packets [14:06:49]CheckFolder done [14:06:49]ProducePacketName [14:06:49]name=ofd_packets/00004266 [14:06:49]NVStorageSaveData ofd_packets/00004266 [14:06:49]File name is /storage/ofd_packets/00004266 [14:06:49]Write 457 bytes [14:06:49]NVStorageSaveData done [14:06:49]OFDSenderStorePacket done [14:06:49]KKMCreateOFDPacket done [14:06:49]NVStorageSaveData kkm_last_timestamp [14:06:49]File name is /storage/kkm_last_timestamp [14:06:49]Write 4 bytes [14:06:49]NVStorageSaveData done [14:06:49]ExternCall_PrintAddStr [14:06:49]wPrintStart [14:06:49]Write to MH i2c: 01 00 00 DF 15 F4 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]OFD Sender: Processing packet 4266 [packets to send 2, broken 1] [14:06:49]Read from MH i2c: 01 ProducePacketName [14:06:49] [14:06:49]name=ofd_packets/00004266 [14:06:49]MH_I2C_Read... [14:06:49]OFD Sender: To server: pG, [14:06:49]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [14:06:49]01 ConnectInit lk.salyk.kg [14:06:49]07 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 DF 15 00 00 00 00 00 FF 0F 09 [14:06:49]RasterBufferAndPrint [14:06:49]line Счет N : (3)4518 [14:06:49]line ИНН: 02508201610067 [14:06:49]line Контрольно-Кассовый Чек [14:06:49]line ПРОДАЖА [14:06:49]line Товар: 4607120858977 [14:06:49]line Чипсы Чипсоны краб 40г [14:06:49]line 1.000 * 41.00 [14:06:49]line = 41.00 [14:06:49]line НДС 12% НСП 1% [14:06:49]line > о реализуемом товаре [14:06:49]line Товар: 4870235681390 [14:06:49]line ЧИПСЫ SLANG СО ВКУСОМ ПАПРИКА 60Г [14:06:49]line 1.000 * 95.00 [14:06:49]line = 95.00 [14:06:49]line НДС 12% НСП 1% [14:06:49]line > о реализуемом товаре [14:06:49]line ИТОГО: 136.00 [14:06:49]line НСП 1% : 1.20 [14:06:49]line НДС 12% : 14.44 [14:06:49]line Наличными: 136.00 [14:06:49]line Безнал.: 0.00 [14:06:49]line Место: АЗС № 116 "Партнер Нефть" [14:06:49]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:06:49]line СНО: Общий режим [14:06:49]line Чек 41 06.06.2024 14:06 [14:06:49]line Смена: 85 ФФД: 1.0 [14:06:49]line ЗНМ: 0300000233 [14:06:49]line РНМ: 0000000000145775 [14:06:49]line Версия ККМ: v1.0 [14:06:49]line ФМ: 0000000000959360 [14:06:49]line ФД: 4266 [14:06:49]line ФПД: 224578809905208 [14:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140653&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4266&fm=224578809905208&tin=02508201610067®Number=0000000000145775&sum=13600 [14:06:49]line 0 [14:06:49]written 0, free lines is 4095 [14:06:49]Connected sock=11 [14:06:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 AB 01 00 00 3C 40 A3 01 D8 48 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 39 30 06 04 36 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9F D0 90 D0 9F D0 A0 D0 98 D0 9A D0 90 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 05 00 00 00 00 07 04 06 00 20 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7D C2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AA 10 00 00 35 04 06 00 CC 40 D4 30 40 38 92 B7 79 7A 53 71 82 7E [14:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 C3 42 47 00 8B 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AA 10 00 00 F4 03 04 00 7C 6E 61 66 B6 04 01 00 00 4C 01 07 1A 90 F0 77 F6 [14:06:50]CommunicateWithHost err = 0 [14:06:50]CheckOFDResponse [14:06:50]1017 (14) - 77093643461234 [14:06:50]1041 (16) - 0000000000959360 [14:06:50]1040 (4) - 4266 [14:06:50]1012 (4) - 06.06.2024 08:08 [14:06:50]1206 (1) - 0 [14:06:50]OFD Sender: Remove packet 4266 [14:06:50]ProducePacketName [14:06:50]name=ofd_packets/00004266 [14:06:50]NVStorageDeleteData [14:06:50]Write to MH i2c: 01 00 00 0E 16 24 [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 07 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 07 00 0E 16 00 00 00 00 00 68 0C 9F [14:06:50]RasterBufferAndPrint [14:06:50]line [14:06:50]line [14:06:50]line [14:06:50]line [14:06:50]line [14:06:50]written 0, free lines is 3182 [14:06:50]MH_Cut [14:06:50]Write to MH i2c: D1 01 00 15 16 01 FD [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: D1 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: D1 01 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: D1 01 00 15 16 00 FC [14:06:50]Write to MH i2c: 01 00 00 16 16 2C [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]OFD Sender: No OFD packet to send [14:06:51]*** Cut start [14:06:51]*** Partial cut [14:06:51]*** CUTSNS_PIN = 1 [14:06:51]*** CUTSNS_PIN = 0 [14:06:51]*** Brake cut motor [14:06:51]Read from MH i2c: 01 [14:06:51]MH_I2C_Read... [14:06:51]*** Stop cut motor [14:06:51]Read from MH i2c: *** Cut end [14:06:51]01 07 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: 01 07 00 16 16 00 00 00 00 00 FF 0F 41 [14:06:51]process_action close_receipt done [14:06:51]requested_data is exist [14:06:51]produce_requested_data [14:06:51]requested_item fm.sn is exist - process it [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 11 00 00 [14:06:51]Write to MH i2c: E2 08 00 17 16 80 11 00 00 00 00 00 00 A7 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 17 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 FA [14:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:06:51]wFMCommunicate OK [14:06:51]requested_item fd.num is exist - process it [14:06:51]SAM_PROTO_GetFieldsCounters [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 00 00 [14:06:51]Write to MH i2c: E2 08 00 18 16 80 13 00 00 00 00 00 00 AA [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 62 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 62 00 18 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AA 10 00 00 0E 04 04 00 55 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 59 [14:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AA 10 00 00 0E 04 04 00 55 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 [14:06:52]wFMCommunicate OK [14:06:52]SAM_PROTO_GetFieldsCounters done [14:06:52]requested_item shift.num is exist - process it [14:06:52]requested_item shift.opened is exist - process it [14:06:52]req_shift_opened [14:06:52]FM_GetShiftState [14:06:52]SAM_PROTO_GetShiftState [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 13 01 00 [14:06:52]Write to MH i2c: E2 08 00 19 16 80 13 01 00 00 00 00 00 AC [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 0E 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 0E 00 19 16 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 65 [14:06:52]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:06:52]wFMCommunicate OK [14:06:52]SAM_PROTO_GetShiftState done [14:06:52]FM_GetShiftState done [14:06:52]req_shift_opened done [14:06:52]requested_item shift.open_date is exist - process it [14:06:52]req_shift_open_date [14:06:52]req_shift_open_date done [14:06:52]produce_requested_data done [14:06:52]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4266,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:06:52]process_action_free close_receipt [14:06:52]json_value_free [14:06:52]json_value_free done [14:06:52]process_json_proto returns [14:06:52]Send response to host [14:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4266,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:06:52]free response buf [14:06:52]execute_script done [14:06:52]execute_script returns [14:06:52]free content buf [14:06:52]Sock 9.Close socket [14:06:52]Sock 9.Thread stoped [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:11]accept exits with 8 [14:07:11]New connection [14:07:11]New thread 3066772836 created [14:07:11]Thread 3066629476 joined [14:07:11]Waiting for new connection... [14:07:11] Sock 8.Parse request [14:07:11]Sock 8.Check first char [14:07:11]Sock 8.First char is OK [14:07:11]request: POST /json_proto HTTP/1.0 [14:07:11]Method: POST [14:07:11]URL: /json_proto [14:07:11]Method is POST - this is cgi request [14:07:11]url: /json_proto [14:07:11]query_string will be loaded in cgi processing [14:07:11]execute_cgi json_proto POST (null) [14:07:11]execute_cgi path=json_proto method=POST [14:07:11]POST find Content-Length [14:07:11]Host: 172.17.56.68:8080 [14:07:11]Content-Length: 698 [14:07:11]Content-Type: application/json [14:07:11] [14:07:11]POST finish read [14:07:11]Found Content-Length = 698 [14:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4519", "tax_sys" : 0, "items" : [ { "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:11]execute_script... [14:07:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4519", "tax_sys" : 0, "items" : [ { "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:11]POST & json_proto [14:07:11]process_json_proto [14:07:11]json parsed OK: [14:07:11]protocol is kg_v1.0 [14:07:11]action value=close_receipt [14:07:11]process_action close_receipt [14:07:11]cmd_close_receipt [14:07:11]MH_GetDate [14:07:11]Write to MH i2c: F0 00 00 1A 16 1F [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: F0 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: F0 09 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: F0 09 00 1A 16 00 94 C2 61 66 3A 8F 60 66 D4 [14:07:11]GetLastDocTimeStamp 1717682813 [14:07:11]current date 1717682836 [14:07:11]FM_GetShiftState [14:07:11]SAM_PROTO_GetShiftState [14:07:11]wFMCommunicate request_size=4 [14:07:11]MH_SAM_APDU [14:07:11]CAPDU: 80 13 01 00 [14:07:11]Write to MH i2c: E2 08 00 1B 16 80 13 01 00 00 00 00 00 AE [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:11]Read from MH i2c: E2 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0E 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0E 00 1B 16 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 67 [14:07:11]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:07:11]wFMCommunicate OK [14:07:11]SAM_PROTO_GetShiftState done [14:07:11]FM_GetShiftState done [14:07:11]opened in 1717632745 [14:07:11]opened+sec_in_day 1717719145 [14:07:11]quantity*price = 4100 [14:07:11]sum+1 = 4101 [14:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 41.00 НСП 1% : 0.36 НДС 12% : 4.35 Наличными: 41.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 42 06.06.2024 14:07 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4267 ФПД: 41157172156312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140716&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4267&fm=41157172156312&tin=02508201610067®Number=0000000000145775&sum=4100 0 [14:07:12]StoreToDocumentArchive [14:07:12]shift 85 fd 4267 [14:07:12]save to /storage/0085/doc_00004267 [14:07:12]save last doc name /storage/0085/doc_00004267 to /storage/kkm_last_doc_name [14:07:12]save OK [14:07:12]Clear old archive folders... [14:07:12]ProcessDocumentItem done err = 0, tmpTLVsize=295 [14:07:12]tlvbuf is 019F2550 [14:07:12]SAM_PROTO_ClearQueue [14:07:12]wFMCommunicate request_size=4 [14:07:12]MH_SAM_APDU [14:07:12]CAPDU: 80 09 00 00 [14:07:12]Write to MH i2c: E2 08 00 28 16 80 09 00 00 00 00 00 00 B0 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:12]Read from MH i2c: E2 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [14:07:12]RAPDU: 90 00 [14:07:12]wFMCommunicate OK [14:07:12]SAM_PROTO_ClearQueue done [14:07:12]KKMCreateOFDPacket [14:07:12]OFDProtocolAddRootSTLVToBuf [14:07:12]FM_MakeSignedData [14:07:12]FM_MakeSignedData [14:07:12]SAM_PROTO_SignData [14:07:12]wFMCommunicate request_size=4 [14:07:12]MH_SAM_APDU [14:07:12]CAPDU: 80 0D 01 02 [14:07:12]Write to MH i2c: E2 08 00 29 16 80 0D 01 02 00 00 00 00 B8 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:12]Read from MH i2c: E2 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [14:07:12]RAPDU: 90 00 [14:07:12]wFMCommunicate OK [14:07:12]wFMCommunicate request_size=255 [14:07:12]MH_SAM_APDU [14:07:12]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 10 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 94 C2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [14:07:12]Write to MH i2c: E2 02 01 2A 16 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 10 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 94 C2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 35 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:12]Read from MH i2c: E2 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 2A 16 00 90 00 B4 [14:07:12]RAPDU: 90 00 [14:07:12]wFMCommunicate OK [14:07:12]wFMCommunicate request_size=54 [14:07:12]MH_SAM_APDU [14:07:12]CAPDU: 80 0D 02 02 31 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AB 10 00 00 35 04 06 00 25 6E A6 A0 57 98 [14:07:12]Write to MH i2c: E2 39 00 2B 16 80 0D 02 02 31 00 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AB 10 00 00 35 04 06 00 25 6E A6 A0 57 98 00 00 69 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [14:07:13]RAPDU: 90 00 [14:07:13]wFMCommunicate OK [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 0D 03 02 [14:07:13]Write to MH i2c: E2 08 00 2C 16 80 0D 03 02 00 00 00 00 BD [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0B 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0B 00 2C 16 00 66 A9 AB 08 2D EA 32 B3 90 00 7C [14:07:13]RAPDU: 66 A9 AB 08 2D EA 32 B3 90 00 [14:07:13]wFMCommunicate OK [14:07:13]SAM_PROTO_SignData done [14:07:13]FM_MakeSignedData done [14:07:13]CreateOFDProtocolMessage [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 11 00 00 [14:07:13]Write to MH i2c: E2 08 00 2D 16 80 11 00 00 00 00 00 00 BD [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 17 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 17 00 2D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 10 [14:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:07:13]wFMCommunicate OK [14:07:13]CreateOFDProtocolMessage done [14:07:13]OFDSenderStorePacket 4267 [14:07:13]StoreOFDPacket docnum=4267 [14:07:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3B 01 00 00 B1 E9 33 01 5F 20 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 10 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 94 C2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AB 10 00 00 35 04 06 00 25 6E A6 A0 57 98 66 A9 AB 08 2D EA 32 B3 [14:07:13]CheckFolder [14:07:13]dirname=/storage/ofd_packets [14:07:13]CheckFolder done [14:07:13]ProducePacketName [14:07:13]name=ofd_packets/00004267 [14:07:13]NVStorageSaveData ofd_packets/00004267 [14:07:13]File name is /storage/ofd_packets/00004267 [14:07:13]Write 345 bytes [14:07:13]NVStorageSaveData done [14:07:13]OFDSenderStorePacket done [14:07:13]KKMCreateOFDPacket done [14:07:13]NVStorageSaveData kkm_last_timestamp [14:07:13]File name is /storage/kkm_last_timestamp [14:07:13]Write 4 bytes [14:07:13]NVStorageSaveData done [14:07:13]ExternCall_PrintAddStr [14:07:13]wPrintStart [14:07:13]Write to MH i2c: 01 00 00 2E 16 44 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 2E 16 00 00 00 00 00 FF 0F 59 [14:07:13]RasterBufferAndPrint [14:07:13]line Счет N : (3)4519 [14:07:13]line ИНН: 02508201610067 [14:07:13]line Контрольно-Кассовый Чек [14:07:13]line ПРОДАЖА [14:07:13]line Товар: 4607010740757 [14:07:13]line Чипсы Чипсоны сметана, лук 40г [14:07:13]line 1.000 * 41.00 [14:07:13]line = 41.00 [14:07:13]line НДС 12% НСП 1% [14:07:13]line > о реализуемом товаре [14:07:13]line ИТОГО: 41.00 [14:07:13]line НСП 1% : 0.36 [14:07:13]line НДС 12% : 4.35 [14:07:13]line Наличными: 41.00 [14:07:13]line Безнал.: 0.00 [14:07:13]line Место: АЗС № 116 "Партнер Нефть" [14:07:13]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:07:13]line СНО: Общий режим [14:07:13]line Чек 42 06.06.2024 14:07 [14:07:13]line Смена: 85 ФФД: 1.0 [14:07:13]line ЗНМ: 0300000233 [14:07:13]line РНМ: 0000000000145775 [14:07:13]line Версия ККМ: v1.0 [14:07:13]line ФМ: 0000000000959360 [14:07:13]line ФД: 4267 [14:07:13]line ФПД: 41157172156312 [14:07:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T140716&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4267&fm=41157172156312&tin=02508201610067®Number=0000000000145775&sum=4100 [14:07:13]line 0 [14:07:13]OFD Sender: Processing packet 4267 [packets to send 2, broken 1] [14:07:13]ProducePacketName [14:07:13]name=ofd_packets/00004267 [14:07:13]OFD Sender: To server: pG, [14:07:13]CommunicateWithHost lk.salyk.kg:30040 [14:07:13]ConnectInit lk.salyk.kg [14:07:13]written 0, free lines is 4095 [14:07:13]Connected sock=10 [14:07:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3B 01 00 00 B1 E9 33 01 5F 20 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 10 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 94 C2 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AB 10 00 00 35 04 06 00 25 6E A6 A0 57 98 66 A9 AB 08 2D EA 32 B3 [14:07:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 B7 90 47 00 7D 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 39 35 39 33 36 30 10 04 04 00 AB 10 00 00 F4 03 04 00 94 6E 61 66 B6 04 01 00 00 EB B5 61 2C B0 07 08 5A [14:07:13]CommunicateWithHost err = 0 [14:07:13]CheckOFDResponse [14:07:13]1017 (14) - 77093643461234 [14:07:13]1041 (16) - 0000000000959360 [14:07:13]1040 (4) - 4267 [14:07:13]1012 (4) - 06.06.2024 08:08 [14:07:13]1206 (1) - 0 [14:07:13]OFD Sender: Remove packet 4267 [14:07:13]ProducePacketName [14:07:13]name=ofd_packets/00004267 [14:07:13]NVStorageDeleteData [14:07:13]Write to MH i2c: 01 00 00 57 16 6D [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 57 16 00 00 00 00 00 BB 0C 3B [14:07:13]RasterBufferAndPrint [14:07:13]line [14:07:13]line [14:07:13]line [14:07:13]line [14:07:13]line [14:07:13]written 0, free lines is 3265 [14:07:13]MH_Cut [14:07:13]Write to MH i2c: D1 01 00 5E 16 01 46 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: D1 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: D1 01 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: D1 01 00 5E 16 00 45 [14:07:13]Write to MH i2c: 01 00 00 5F 16 75 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:14]OFD Sender: No OFD packet to send [14:07:14]*** Cut start [14:07:14]*** Partial cut [14:07:14]*** CUTSNS_PIN = 1 [14:07:14]*** CUTSNS_PIN = 0 [14:07:15]*** Brake cut motor [14:07:15]Read from MH i2c: 01 [14:07:15]MH_I2C_Read... [14:07:15]*** Stop cut motor [14:07:15]*** Cut end [14:07:15]Read from MH i2c: 01 07 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: 01 07 00 5F 16 00 00 00 00 00 FF 0F 8A [14:07:15]process_action close_receipt done [14:07:15]requested_data is exist [14:07:15]produce_requested_data [14:07:15]requested_item fm.sn is exist - process it [14:07:15]wFMCommunicate request_size=4 [14:07:15]MH_SAM_APDU [14:07:15]CAPDU: 80 11 00 00 [14:07:15]Write to MH i2c: E2 08 00 60 16 80 11 00 00 00 00 00 00 F0 [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:15]Read from MH i2c: E2 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 17 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 17 00 60 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 43 [14:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:07:15]wFMCommunicate OK [14:07:15]requested_item fd.num is exist - process it [14:07:15]SAM_PROTO_GetFieldsCounters [14:07:15]wFMCommunicate request_size=4 [14:07:15]MH_SAM_APDU [14:07:15]CAPDU: 80 13 00 00 [14:07:15]Write to MH i2c: E2 08 00 61 16 80 13 00 00 00 00 00 00 F3 [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:15]Read from MH i2c: E2 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 62 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 62 00 61 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AB 10 00 00 0E 04 04 00 55 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 A6 [14:07:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AB 10 00 00 0E 04 04 00 55 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 [14:07:15]wFMCommunicate OK [14:07:15]SAM_PROTO_GetFieldsCounters done [14:07:15]requested_item shift.num is exist - process it [14:07:15]requested_item shift.opened is exist - process it [14:07:15]req_shift_opened [14:07:15]FM_GetShiftState [14:07:15]SAM_PROTO_GetShiftState [14:07:15]wFMCommunicate request_size=4 [14:07:15]MH_SAM_APDU [14:07:15]CAPDU: 80 13 01 00 [14:07:15]Write to MH i2c: E2 08 00 62 16 80 13 01 00 00 00 00 00 F5 [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:15]Read from MH i2c: E2 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 0E 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 0E 00 62 16 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 AE [14:07:15]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:07:15]wFMCommunicate OK [14:07:15]SAM_PROTO_GetShiftState done [14:07:15]FM_GetShiftState done [14:07:15]req_shift_opened done [14:07:15]requested_item shift.open_date is exist - process it [14:07:15]req_shift_open_date [14:07:15]req_shift_open_date done [14:07:15]produce_requested_data done [14:07:15]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4267,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:07:15]process_action_free close_receipt [14:07:15]json_value_free [14:07:15]json_value_free done [14:07:15]process_json_proto returns [14:07:15]Send response to host [14:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4267,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:07:15]free response buf [14:07:15]execute_script done [14:07:15]execute_script returns [14:07:15]free content buf [14:07:15]Sock 8.Close socket [14:07:15]Sock 8.Thread stoped [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:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]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:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]accept exits with 9 [14:41:30]New connection [14:41:30]New thread 3066629476 created [14:41:30]Thread 3066772836 joined [14:41:30]Waiting for new connection... [14:41:30] Sock 9.Parse request [14:41:30]Sock 9.Check first char [14:41:30]Sock 9.First char is OK [14:41:30]request: POST /json_proto HTTP/1.0 [14:41:30]Method: POST [14:41:30]URL: /json_proto [14:41:30]Method is POST - this is cgi request [14:41:30]url: /json_proto [14:41:30]query_string will be loaded in cgi processing [14:41:30]execute_cgi json_proto POST (null) [14:41:30]execute_cgi path=json_proto method=POST [14:41:30]POST find Content-Length [14:41:30]Host: 172.17.56.68:8080 [14:41:30]Content-Length: 626 [14:41:30]Content-Type: application/json [14:41:30] [14:41:30]POST finish read [14:41:30]Found Content-Length = 626 [14:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4520", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:30]execute_script... [14:41: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 : (3)4520", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:30]POST & json_proto [14:41:30]process_json_proto [14:41:30]json parsed OK: [14:41:30]protocol is kg_v1.0 [14:41:30]action value=close_receipt [14:41:30]process_action close_receipt [14:41:30]cmd_close_receipt [14:41:30]MH_GetDate [14:41:30]Write to MH i2c: F0 00 00 63 16 68 [14:41:30]Write i2c OK [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: F0 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: F0 09 00 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: F0 09 00 63 16 00 9F CA 61 66 3A 8F 60 66 30 [14:41:30]GetLastDocTimeStamp 1717682836 [14:41:30]current date 1717684895 [14:41:30]FM_GetShiftState [14:41:30]SAM_PROTO_GetShiftState [14:41:30]wFMCommunicate request_size=4 [14:41:30]MH_SAM_APDU [14:41:30]CAPDU: 80 13 01 00 [14:41:30]Write to MH i2c: E2 08 00 64 16 80 13 01 00 00 00 00 00 F7 [14:41:30]Write i2c OK [14:41:30]MH_I2C_Read... [14:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:30]Read from MH i2c: E2 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 0E 00 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 0E 00 64 16 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 B0 [14:41:30]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:41:30]wFMCommunicate OK [14:41:30]SAM_PROTO_GetShiftState done [14:41:30]FM_GetShiftState done [14:41:30]opened in 1717632745 [14:41:30]opened+sec_in_day 1717719145 [14:41:30]quantity*price = 13000 [14:41:30]sum+1 = 13001 [14:41:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 43 06.06.2024 14:41 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4268 ФПД: 196775298636859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144135&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4268&fm=196775298636859&tin=02508201610067®Number=0000000000145775&sum=13000 0 [14:41:31]StoreToDocumentArchive [14:41:31]shift 85 fd 4268 [14:41:31]save to /storage/0085/doc_00004268 [14:41:31]save last doc name /storage/0085/doc_00004268 to /storage/kkm_last_doc_name [14:41:31]save OK [14:41:31]Clear old archive folders... [14:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:41:31]tlvbuf is B6F2CB10 [14:41:31]SAM_PROTO_ClearQueue [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 09 00 00 [14:41:31]Write to MH i2c: E2 08 00 71 16 80 09 00 00 00 00 00 00 F9 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [14:41:31]RAPDU: 90 00 [14:41:31]wFMCommunicate OK [14:41:31]SAM_PROTO_ClearQueue done [14:41:31]KKMCreateOFDPacket [14:41:31]OFDProtocolAddRootSTLVToBuf [14:41:31]FM_MakeSignedData [14:41:31]FM_MakeSignedData [14:41:31]SAM_PROTO_SignData [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 0D 01 02 [14:41:31]Write to MH i2c: E2 08 00 72 16 80 0D 01 02 00 00 00 00 01 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [14:41:31]RAPDU: 90 00 [14:41:31]wFMCommunicate OK [14:41:31]wFMCommunicate request_size=255 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 9F CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 [14:41:31]Write to MH i2c: E2 02 01 73 16 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 9F CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 00 00 D0 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 73 16 00 90 00 FD [14:41:31]RAPDU: 90 00 [14:41:31]wFMCommunicate OK [14:41:31]wFMCommunicate request_size=35 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AC 10 00 00 35 04 06 00 B2 F7 51 C6 9C 3B [14:41:31]Write to MH i2c: E2 26 00 74 16 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AC 10 00 00 35 04 06 00 B2 F7 51 C6 9C 3B 00 00 4A [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 03 00 74 16 00 90 00 FE [14:41:31]RAPDU: 90 00 [14:41:31]wFMCommunicate OK [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 0D 03 02 [14:41:31]Write to MH i2c: E2 08 00 75 16 80 0D 03 02 00 00 00 00 06 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 0B 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 0B 00 75 16 00 AA D5 04 FB 8D F9 75 51 90 00 D1 [14:41:31]RAPDU: AA D5 04 FB 8D F9 75 51 90 00 [14:41:31]wFMCommunicate OK [14:41:31]SAM_PROTO_SignData done [14:41:31]FM_MakeSignedData done [14:41:31]CreateOFDProtocolMessage [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 11 00 00 [14:41:31]Write to MH i2c: E2 08 00 76 16 80 11 00 00 00 00 00 00 06 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 17 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 17 00 76 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 59 [14:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:41:31]wFMCommunicate OK [14:41:31]CreateOFDProtocolMessage done [14:41:31]OFDSenderStorePacket 4268 [14:41:31]StoreOFDPacket docnum=4268 [14:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 28 01 00 00 FA 12 20 01 0A 08 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 9F CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AC 10 00 00 35 04 06 00 B2 F7 51 C6 9C 3B AA D5 04 FB 8D F9 75 51 [14:41:31]CheckFolder [14:41:31]dirname=/storage/ofd_packets [14:41:31]CheckFolder done [14:41:31]ProducePacketName [14:41:31]name=ofd_packets/00004268 [14:41:31]NVStorageSaveData ofd_packets/00004268 [14:41:31]File name is /storage/ofd_packets/00004268 [14:41:31]Write 326 bytes [14:41:31]NVStorageSaveData done [14:41:31]OFDSenderStorePacket done [14:41:31]KKMCreateOFDPacket done [14:41:31]NVStorageSaveData kkm_last_timestamp [14:41:31]File name is /storage/kkm_last_timestamp [14:41:31]Write 4 bytes [14:41:31]NVStorageSaveData done [14:41:31]ExternCall_PrintAddStr [14:41:31]wPrintStart [14:41:31]Write to MH i2c: 01 00 00 77 16 8D [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: 01 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: 01 07 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: 01 07 00 77 16 00 00 00 00 00 FF 0F A2 [14:41:31]RasterBufferAndPrint [14:41:31]line Счет N : (3)4520 [14:41:31]line ИНН: 02508201610067 [14:41:31]line Контрольно-Кассовый Чек [14:41:31]line ПРОДАЖА [14:41:31]line Товар: 2000036230011 [14:41:31]line Кофе Латте XL(GABB TRADE) [14:41:31]line 1.000 * 130.00 [14:41:31]line = 130.00 [14:41:31]line НДС 12% НСП 1% [14:41:31]line > о реализуемом товаре [14:41:31]line ИТОГО: 130.00 [14:41:31]line НСП 1% : 1.15 [14:41:31]line НДС 12% : 13.80 [14:41:31]line Наличными: 130.00 [14:41:31]line Безнал.: 0.00 [14:41:31]line Место: АЗС № 116 "Партнер Нефть" [14:41:31]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:41:31]line СНО: Общий режим [14:41:31]line Чек 43 06.06.2024 14:41 [14:41:31]line Смена: 85 ФФД: 1.0 [14:41:31]line ЗНМ: 0300000233 [14:41:32]line РНМ: 0000000000145775 [14:41:32]line Версия ККМ: v1.0 [14:41:32]line ФМ: 0000000000959360 [14:41:32]line ФД: 4268 [14:41:32]line ФПД: 196775298636859 [14:41:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144135&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4268&fm=196775298636859&tin=02508201610067®Number=0000000000145775&sum=13000 [14:41:32]line 0 [14:41:32]OFD Sender: Processing packet 4268 [packets to send 2, broken 1] [14:41:32]ProducePacketName [14:41:32]name=ofd_packets/00004268 [14:41:32]OFD Sender: To server: pG, [14:41:32]CommunicateWithHost lk.salyk.kg:30040 [14:41:32]ConnectInit lk.salyk.kg [14:41:32]written 0, free lines is 4095 [14:41:32]Connected sock=10 [14:41:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 28 01 00 00 FA 12 20 01 0A 08 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 9F CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AC 10 00 00 35 04 06 00 B2 F7 51 C6 9C 3B AA D5 04 FB 8D F9 75 51 [14:41:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 B6 37 47 00 EE 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 39 35 39 33 36 30 10 04 04 00 AC 10 00 00 F4 03 04 00 9E 76 61 66 B6 04 01 00 00 F0 56 06 6D 96 D6 EA 8B [14:41:32]CommunicateWithHost err = 0 [14:41:32]CheckOFDResponse [14:41:32]1017 (14) - 77093643461234 [14:41:32]1041 (16) - 0000000000959360 [14:41:32]1040 (4) - 4268 [14:41:32]1012 (4) - 06.06.2024 08:43 [14:41:32]1206 (1) - 0 [14:41:32]OFD Sender: Remove packet 4268 [14:41:32]ProducePacketName [14:41:32]name=ofd_packets/00004268 [14:41:32]NVStorageDeleteData [14:41:32]Write to MH i2c: 01 00 00 9F 16 B5 [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: 01 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: 01 07 00 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: 01 07 00 9F 16 00 00 00 00 00 D7 0C 9F [14:41:32]RasterBufferAndPrint [14:41:32]line [14:41:32]line [14:41:32]line [14:41:32]line [14:41:32]line [14:41:32]written 0, free lines is 3293 [14:41:32]MH_Cut [14:41:32]Write to MH i2c: D1 01 00 A6 16 01 8E [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: D1 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: D1 01 00 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: D1 01 00 A6 16 00 8D [14:41:32]Write to MH i2c: 01 00 00 A7 16 BD [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]OFD Sender: No OFD packet to send [14:41:33]*** Cut start [14:41:33]*** Partial cut [14:41:33]*** CUTSNS_PIN = 1 [14:41:33]*** CUTSNS_PIN = 0 [14:41:33]*** Brake cut motor [14:41:34]Read from MH i2c: 01 [14:41:34]MH_I2C_Read... [14:41:34]*** Stop cut motor [14:41:34]*** Cut end [14:41:34]Read from MH i2c: 01 07 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: 01 07 00 A7 16 00 00 00 00 00 FF 0F D2 [14:41:34]process_action close_receipt done [14:41:34]requested_data is exist [14:41:34]produce_requested_data [14:41:34]requested_item fm.sn is exist - process it [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 11 00 00 [14:41:34]Write to MH i2c: E2 08 00 A8 16 80 11 00 00 00 00 00 00 38 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 17 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 17 00 A8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 8B [14:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:41:34]wFMCommunicate OK [14:41:34]requested_item fd.num is exist - process it [14:41:34]SAM_PROTO_GetFieldsCounters [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 13 00 00 [14:41:34]Write to MH i2c: E2 08 00 A9 16 80 13 00 00 00 00 00 00 3B [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 62 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 62 00 A9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AC 10 00 00 0E 04 04 00 55 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 F2 [14:41:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AC 10 00 00 0E 04 04 00 55 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 [14:41:34]wFMCommunicate OK [14:41:34]SAM_PROTO_GetFieldsCounters done [14:41:34]requested_item shift.num is exist - process it [14:41:34]requested_item shift.opened is exist - process it [14:41:34]req_shift_opened [14:41:34]FM_GetShiftState [14:41:34]SAM_PROTO_GetShiftState [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 13 01 00 [14:41:34]Write to MH i2c: E2 08 00 AA 16 80 13 01 00 00 00 00 00 3D [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 0E 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 0E 00 AA 16 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 F6 [14:41:34]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:41:34]wFMCommunicate OK [14:41:34]SAM_PROTO_GetShiftState done [14:41:34]FM_GetShiftState done [14:41:34]req_shift_opened done [14:41:34]requested_item shift.open_date is exist - process it [14:41:34]req_shift_open_date [14:41:34]req_shift_open_date done [14:41:34]produce_requested_data done [14:41:34]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4268,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:41:34]process_action_free close_receipt [14:41:34]json_value_free [14:41:34]json_value_free done [14:41:34]process_json_proto returns [14:41:34]Send response to host [14:41:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4268,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:41:34]free response buf [14:41:34]execute_script done [14:41:34]execute_script returns [14:41:34]free content buf [14:41:34]Sock 9.Close socket [14:41:34]Sock 9.Thread stoped [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]accept exits with 8 [14:42:12]New connection [14:42:12]New thread 3066772836 created [14:42:12]Thread 3066629476 joined [14:42:12]Waiting for new connection... [14:42:12] Sock 8.Parse request [14:42:12]Sock 8.Check first char [14:42:12]Sock 8.First char is OK [14:42:12]request: POST /json_proto HTTP/1.0 [14:42:12]Method: POST [14:42:12]URL: /json_proto [14:42:12]Method is POST - this is cgi request [14:42:12]url: /json_proto [14:42:12]query_string will be loaded in cgi processing [14:42:12]execute_cgi json_proto POST (null) [14:42:12]execute_cgi path=json_proto method=POST [14:42:12]POST find Content-Length [14:42:12]Host: 172.17.56.68:8080 [14:42:12]Content-Length: 637 [14:42:12]Content-Type: application/json [14:42:12] [14:42:12]POST finish read [14:42:12]Found Content-Length = 637 [14:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4521", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:12]execute_script... [14:42:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4521", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:12]POST & json_proto [14:42:12]process_json_proto [14:42:12]json parsed OK: [14:42:12]protocol is kg_v1.0 [14:42:12]action value=close_receipt [14:42:12]process_action close_receipt [14:42:12]cmd_close_receipt [14:42:12]MH_GetDate [14:42:12]Write to MH i2c: F0 00 00 AB 16 B0 [14:42:12]Write i2c OK [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: F0 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: F0 09 00 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: F0 09 00 AB 16 00 C9 CA 61 66 3A 8F 60 66 A2 [14:42:12]GetLastDocTimeStamp 1717684895 [14:42:12]current date 1717684937 [14:42:12]FM_GetShiftState [14:42:12]SAM_PROTO_GetShiftState [14:42:12]wFMCommunicate request_size=4 [14:42:12]MH_SAM_APDU [14:42:12]CAPDU: 80 13 01 00 [14:42:12]Write to MH i2c: E2 08 00 AC 16 80 13 01 00 00 00 00 00 3F [14:42:12]Write i2c OK [14:42:12]MH_I2C_Read... [14:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:12]Read from MH i2c: E2 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: E2 0E 00 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: E2 0E 00 AC 16 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 F8 [14:42:12]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:42:12]wFMCommunicate OK [14:42:12]SAM_PROTO_GetShiftState done [14:42:12]FM_GetShiftState done [14:42:12]opened in 1717632745 [14:42:12]opened+sec_in_day 1717719145 [14:42:12]quantity*price = 11300 [14:42:12]sum+1 = 11301 [14:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 44 06.06.2024 14:42 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4269 ФПД: 212349637780797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144217&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4269&fm=212349637780797&tin=02508201610067®Number=0000000000145775&sum=11300 0 [14:42:13]StoreToDocumentArchive [14:42:13]shift 85 fd 4269 [14:42:13]save to /storage/0085/doc_00004269 [14:42:13]save last doc name /storage/0085/doc_00004269 to /storage/kkm_last_doc_name [14:42:13]save OK [14:42:13]Clear old archive folders... [14:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:42:13]tlvbuf is 019CAF10 [14:42:13]SAM_PROTO_ClearQueue [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 09 00 00 [14:42:13]Write to MH i2c: E2 08 00 B9 16 80 09 00 00 00 00 00 00 41 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 B9 16 00 90 00 43 [14:42:13]RAPDU: 90 00 [14:42:13]wFMCommunicate OK [14:42:13]SAM_PROTO_ClearQueue done [14:42:13]KKMCreateOFDPacket [14:42:13]OFDProtocolAddRootSTLVToBuf [14:42:13]FM_MakeSignedData [14:42:13]FM_MakeSignedData [14:42:13]SAM_PROTO_SignData [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 0D 01 02 [14:42:13]Write to MH i2c: E2 08 00 BA 16 80 0D 01 02 00 00 00 00 49 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [14:42:13]RAPDU: 90 00 [14:42:13]wFMCommunicate OK [14:42:13]wFMCommunicate request_size=255 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 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 C9 CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:42:13]Write to MH i2c: E2 02 01 BB 16 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 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 C9 CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 D2 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [14:42:13]RAPDU: 90 00 [14:42:13]wFMCommunicate OK [14:42:13]wFMCommunicate request_size=30 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 0D 02 02 19 30 39 35 39 33 36 30 10 04 04 00 AD 10 00 00 35 04 06 00 C1 21 80 BA 65 3D [14:42:13]Write to MH i2c: E2 21 00 BC 16 80 0D 02 02 19 00 30 39 35 39 33 36 30 10 04 04 00 AD 10 00 00 35 04 06 00 C1 21 80 BA 65 3D 00 00 C0 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [14:42:13]RAPDU: 90 00 [14:42:13]wFMCommunicate OK [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 0D 03 02 [14:42:13]Write to MH i2c: E2 08 00 BD 16 80 0D 03 02 00 00 00 00 4E [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0B 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0B 00 BD 16 00 6F 52 1D EB C9 33 5A 28 90 00 96 [14:42:13]RAPDU: 6F 52 1D EB C9 33 5A 28 90 00 [14:42:13]wFMCommunicate OK [14:42:13]SAM_PROTO_SignData done [14:42:13]FM_MakeSignedData done [14:42:13]CreateOFDProtocolMessage [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 11 00 00 [14:42:13]Write to MH i2c: E2 08 00 BE 16 80 11 00 00 00 00 00 00 4E [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 17 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 17 00 BE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 A1 [14:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:42:13]wFMCommunicate OK [14:42:13]CreateOFDProtocolMessage done [14:42:13]OFDSenderStorePacket 4269 [14:42:13]StoreOFDPacket docnum=4269 [14:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 23 01 00 00 4C E8 1B 01 0F 1B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 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 C9 CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AD 10 00 00 35 04 06 00 C1 21 80 BA 65 3D 6F 52 1D EB C9 33 5A 28 [14:42:13]CheckFolder [14:42:13]dirname=/storage/ofd_packets [14:42:13]CheckFolder done [14:42:13]ProducePacketName [14:42:13]name=ofd_packets/00004269 [14:42:13]NVStorageSaveData ofd_packets/00004269 [14:42:13]File name is /storage/ofd_packets/00004269 [14:42:13]Write 321 bytes [14:42:13]NVStorageSaveData done [14:42:13]OFDSenderStorePacket done [14:42:13]KKMCreateOFDPacket done [14:42:13]NVStorageSaveData kkm_last_timestamp [14:42:13]File name is /storage/kkm_last_timestamp [14:42:13]Write 4 bytes [14:42:13]NVStorageSaveData done [14:42:13]ExternCall_PrintAddStr [14:42:13]wPrintStart [14:42:13]Write to MH i2c: 01 00 00 BF 16 D5 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: 01 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: 01 07 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: 01 07 00 BF 16 00 00 00 00 00 FF 0F EA [14:42:13]RasterBufferAndPrint [14:42:13]line Счет N : (3)4521 [14:42:13]line ИНН: 02508201610067 [14:42:13]line Контрольно-Кассовый Чек [14:42:13]line ПРОДАЖА [14:42:13]line Товар: 5449000006271 [14:42:13]line Напиток Фанта 1л [14:42:13]line 1.000 * 113.00 [14:42:13]line = 113.00 [14:42:13]line НДС 12% НСП 1% [14:42:13]line > о реализуемом товаре [14:42:13]line ИТОГО: 113.00 [14:42:13]line НСП 1% : 1.00 [14:42:13]line НДС 12% : 12.00 [14:42:13]line Наличными: 113.00 [14:42:13]line Безнал.: 0.00 [14:42:13]line Место: АЗС № 116 "Партнер Нефть" [14:42:13]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:42:13]line СНО: Общий режим [14:42:13]line Чек 44 06.06.2024 14:42 [14:42:13]line Смена: 85 ФФД: 1.0 [14:42:13]line ЗНМ: 0300000233 [14:42:13]line РНМ: 0000000000145775 [14:42:13]line Версия ККМ: v1.0 [14:42:13]line ФМ: 0000000000959360 [14:42:13]line ФД: 4269 [14:42:13]line ФПД: 212349637780797 [14:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144217&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4269&fm=212349637780797&tin=02508201610067®Number=0000000000145775&sum=11300 [14:42:14]line 0 [14:42:14]OFD Sender: Processing packet 4269 [packets to send 2, broken 1] [14:42:14]ProducePacketName [14:42:14]name=ofd_packets/00004269 [14:42:14]OFD Sender: To server: pG, [14:42:14]CommunicateWithHost lk.salyk.kg:30040 [14:42:14]ConnectInit lk.salyk.kg [14:42:14]written 0, free lines is 4095 [14:42:14]Connected sock=10 [14:42:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 23 01 00 00 4C E8 1B 01 0F 1B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 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 C9 CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AD 10 00 00 35 04 06 00 C1 21 80 BA 65 3D 6F 52 1D EB C9 33 5A 28 [14:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 66 2E 47 00 62 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 39 35 39 33 36 30 10 04 04 00 AD 10 00 00 F4 03 04 00 C8 76 61 66 B6 04 01 00 00 5B 74 99 9F 1E D4 C3 9F [14:42:14]CommunicateWithHost err = 0 [14:42:14]CheckOFDResponse [14:42:14]1017 (14) - 77093643461234 [14:42:14]1041 (16) - 0000000000959360 [14:42:14]1040 (4) - 4269 [14:42:14]1012 (4) - 06.06.2024 08:43 [14:42:14]1206 (1) - 0 [14:42:14]OFD Sender: Remove packet 4269 [14:42:14]ProducePacketName [14:42:14]name=ofd_packets/00004269 [14:42:14]NVStorageDeleteData [14:42:14]Write to MH i2c: 01 00 00 E7 16 FD [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: 01 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: 01 07 00 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 D5 0C E5 [14:42:14]RasterBufferAndPrint [14:42:14]line [14:42:14]line [14:42:14]line [14:42:14]line [14:42:14]line [14:42:14]written 0, free lines is 3292 [14:42:14]MH_Cut [14:42:14]Write to MH i2c: D1 01 00 EE 16 01 D6 [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: D1 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: D1 01 00 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: D1 01 00 EE 16 00 D5 [14:42:14]Write to MH i2c: 01 00 00 EF 16 05 [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:14]OFD Sender: No OFD packet to send [14:42:15]*** Cut start [14:42:15]*** Partial cut [14:42:15]*** CUTSNS_PIN = 1 [14:42:15]*** CUTSNS_PIN = 0 [14:42:15]*** Brake cut motor [14:42:16]Read from MH i2c: 01 [14:42:16]MH_I2C_Read... [14:42:16]*** Stop cut motor [14:42:16]*** Cut end [14:42:16]Read from MH i2c: 01 07 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: 01 07 00 EF 16 00 00 00 00 00 FF 0F 1A [14:42:16]process_action close_receipt done [14:42:16]requested_data is exist [14:42:16]produce_requested_data [14:42:16]requested_item fm.sn is exist - process it [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 11 00 00 [14:42:16]Write to MH i2c: E2 08 00 F0 16 80 11 00 00 00 00 00 00 80 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 17 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 17 00 F0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 D3 [14:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:42:16]wFMCommunicate OK [14:42:16]requested_item fd.num is exist - process it [14:42:16]SAM_PROTO_GetFieldsCounters [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 13 00 00 [14:42:16]Write to MH i2c: E2 08 00 F1 16 80 13 00 00 00 00 00 00 83 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 62 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 62 00 F1 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AD 10 00 00 0E 04 04 00 55 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 3E [14:42:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AD 10 00 00 0E 04 04 00 55 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 [14:42:16]wFMCommunicate OK [14:42:16]SAM_PROTO_GetFieldsCounters done [14:42:16]requested_item shift.num is exist - process it [14:42:16]requested_item shift.opened is exist - process it [14:42:16]req_shift_opened [14:42:16]FM_GetShiftState [14:42:16]SAM_PROTO_GetShiftState [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 13 01 00 [14:42:16]Write to MH i2c: E2 08 00 F2 16 80 13 01 00 00 00 00 00 85 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 0E 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 0E 00 F2 16 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 3E [14:42:16]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:42:16]wFMCommunicate OK [14:42:16]SAM_PROTO_GetShiftState done [14:42:16]FM_GetShiftState done [14:42:16]req_shift_opened done [14:42:16]requested_item shift.open_date is exist - process it [14:42:16]req_shift_open_date [14:42:16]req_shift_open_date done [14:42:16]produce_requested_data done [14:42:16]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4269,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:42:16]process_action_free close_receipt [14:42:16]json_value_free [14:42:16]json_value_free done [14:42:16]process_json_proto returns [14:42:16]Send response to host [14:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4269,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:42:16]free response buf [14:42:16]execute_script done [14:42:16]execute_script returns [14:42:16]free content buf [14:42:16]Sock 8.Close socket [14:42:16]Sock 8.Thread stoped [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:42:57]accept exits with 9 [14:42:57]New connection [14:42:57]New thread 3066629476 created [14:42:57]Thread 3066772836 joined [14:42:57]Waiting for new connection... [14:42:57] Sock 9.Parse request [14:42:57]Sock 9.Check first char [14:42:57]Sock 9.First char is OK [14:42:57]request: POST /json_proto HTTP/1.0 [14:42:57]Method: POST [14:42:57]URL: /json_proto [14:42:57]Method is POST - this is cgi request [14:42:57]url: /json_proto [14:42:57]query_string will be loaded in cgi processing [14:42:57]execute_cgi json_proto POST (null) [14:42:57]execute_cgi path=json_proto method=POST [14:42:57]POST find Content-Length [14:42:57]Host: 172.17.56.68:8080 [14:42:57]Content-Length: 706 [14:42:57]Content-Type: application/json [14:42:57] [14:42:57]POST finish read [14:42:57]Found Content-Length = 706 [14:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4522", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:57]execute_script... [14:42:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4522", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:57]POST & json_proto [14:42:57]process_json_proto [14:42:57]json parsed OK: [14:42:57]protocol is kg_v1.0 [14:42:57]action value=close_receipt [14:42:57]process_action close_receipt [14:42:57]cmd_close_receipt [14:42:57]MH_GetDate [14:42:57]Write to MH i2c: F0 00 00 F3 16 F8 [14:42:57]Write i2c OK [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: F0 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: F0 09 00 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: F0 09 00 F3 16 00 F6 CA 61 66 3A 8F 60 66 17 [14:42:57]GetLastDocTimeStamp 1717684937 [14:42:57]current date 1717684982 [14:42:57]FM_GetShiftState [14:42:57]SAM_PROTO_GetShiftState [14:42:57]wFMCommunicate request_size=4 [14:42:57]MH_SAM_APDU [14:42:57]CAPDU: 80 13 01 00 [14:42:57]Write to MH i2c: E2 08 00 F4 16 80 13 01 00 00 00 00 00 87 [14:42:57]Write i2c OK [14:42:57]MH_I2C_Read... [14:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:57]Read from MH i2c: E2 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 0E 00 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 0E 00 F4 16 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 40 [14:42:57]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:42:57]wFMCommunicate OK [14:42:57]SAM_PROTO_GetShiftState done [14:42:57]FM_GetShiftState done [14:42:57]opened in 1717632745 [14:42:57]opened+sec_in_day 1717719145 [14:42:57]quantity*price = 10000 [14:42:57]sum+1 = 10001 [14:42:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 45 06.06.2024 14:43 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4270 ФПД: 260612448323743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144302&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4270&fm=260612448323743&tin=02508201610067®Number=0000000000145775&sum=10000 0 [14:42:58]StoreToDocumentArchive [14:42:58]shift 85 fd 4270 [14:42:58]save to /storage/0085/doc_00004270 [14:42:58]save last doc name /storage/0085/doc_00004270 to /storage/kkm_last_doc_name [14:42:58]save OK [14:42:58]Clear old archive folders... [14:42:58]ProcessDocumentItem done err = 0, tmpTLVsize=304 [14:42:58]tlvbuf is 0198C4E0 [14:42:58]SAM_PROTO_ClearQueue [14:42:58]wFMCommunicate request_size=4 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 09 00 00 [14:42:58]Write to MH i2c: E2 08 00 01 17 80 09 00 00 00 00 00 00 8A [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:58]Read from MH i2c: E2 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 03 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [14:42:58]RAPDU: 90 00 [14:42:58]wFMCommunicate OK [14:42:58]SAM_PROTO_ClearQueue done [14:42:58]KKMCreateOFDPacket [14:42:58]OFDProtocolAddRootSTLVToBuf [14:42:58]FM_MakeSignedData [14:42:58]FM_MakeSignedData [14:42:58]SAM_PROTO_SignData [14:42:58]wFMCommunicate request_size=4 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 0D 01 02 [14:42:58]Write to MH i2c: E2 08 00 02 17 80 0D 01 02 00 00 00 00 92 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:58]Read from MH i2c: E2 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 03 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 03 00 02 17 00 90 00 8D [14:42:58]RAPDU: 90 00 [14:42:58]wFMCommunicate OK [14:42:58]wFMCommunicate request_size=255 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 2D 00 00 00 F4 03 04 00 F6 CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 [14:42:58]Write to MH i2c: E2 02 01 03 17 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 2D 00 00 00 F4 03 04 00 F6 CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 00 00 76 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:58]Read from MH i2c: E2 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 03 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 03 00 03 17 00 90 00 8E [14:42:58]RAPDU: 90 00 [14:42:58]wFMCommunicate OK [14:42:58]wFMCommunicate request_size=63 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AE 10 00 00 35 04 06 00 ED 06 90 68 08 9F [14:42:58]Write to MH i2c: E2 42 00 04 17 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AE 10 00 00 35 04 06 00 ED 06 90 68 08 9F 00 00 33 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:58]Read from MH i2c: E2 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 03 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 03 00 04 17 00 90 00 8F [14:42:58]RAPDU: 90 00 [14:42:58]wFMCommunicate OK [14:42:58]wFMCommunicate request_size=4 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 0D 03 02 [14:42:58]Write to MH i2c: E2 08 00 05 17 80 0D 03 02 00 00 00 00 97 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:58]Read from MH i2c: E2 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 0B 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: E2 0B 00 05 17 00 01 75 6D C9 48 0F 6F 28 90 00 32 [14:42:58]RAPDU: 01 75 6D C9 48 0F 6F 28 90 00 [14:42:58]wFMCommunicate OK [14:42:58]SAM_PROTO_SignData done [14:42:58]FM_MakeSignedData done [14:42:58]CreateOFDProtocolMessage [14:42:58]wFMCommunicate request_size=4 [14:42:58]MH_SAM_APDU [14:42:58]CAPDU: 80 11 00 00 [14:42:58]Write to MH i2c: E2 08 00 06 17 80 11 00 00 00 00 00 00 97 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 17 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 17 00 06 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 EA [14:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:42:59]wFMCommunicate OK [14:42:59]CreateOFDProtocolMessage done [14:42:59]OFDSenderStorePacket 4270 [14:42:59]StoreOFDPacket docnum=4270 [14:42:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 44 01 00 00 4E 7D 3C 01 D3 49 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 2D 00 00 00 F4 03 04 00 F6 CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AE 10 00 00 35 04 06 00 ED 06 90 68 08 9F 01 75 6D C9 48 0F 6F 28 [14:42:59]CheckFolder [14:42:59]dirname=/storage/ofd_packets [14:42:59]CheckFolder done [14:42:59]ProducePacketName [14:42:59]name=ofd_packets/00004270 [14:42:59]NVStorageSaveData ofd_packets/00004270 [14:42:59]File name is /storage/ofd_packets/00004270 [14:42:59]Write 354 bytes [14:42:59]NVStorageSaveData done [14:42:59]OFDSenderStorePacket done [14:42:59]KKMCreateOFDPacket done [14:42:59]NVStorageSaveData kkm_last_timestamp [14:42:59]File name is /storage/kkm_last_timestamp [14:42:59]Write 4 bytes [14:42:59]NVStorageSaveData done [14:42:59]ExternCall_PrintAddStr [14:42:59]wPrintStart [14:42:59]Write to MH i2c: 01 00 00 07 17 1E [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 07 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 07 00 07 17 00 00 00 00 00 FF 0F 33 [14:42:59]RasterBufferAndPrint [14:42:59]line Счет N : (3)4522 [14:42:59]line ИНН: 02508201610067 [14:42:59]line Контрольно-Кассовый Чек [14:42:59]line ПРОДАЖА [14:42:59]line Товар: 5449000273680 [14:42:59]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [14:42:59]line 1.000 * 100.00 [14:42:59]line = 100.00 [14:42:59]line НДС 12% НСП 1% [14:42:59]line > о реализуемом товаре [14:42:59]line ИТОГО: 100.00 [14:42:59]line НСП 1% : 0.88 [14:42:59]line НДС 12% : 10.62 [14:42:59]line Наличными: 100.00 [14:42:59]line Безнал.: 0.00 [14:42:59]line Место: АЗС № 116 "Партнер Нефть" [14:42:59]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:42:59]line СНО: Общий режим [14:42:59]line Чек 45 06.06.2024 14:43 [14:42:59]line Смена: 85 ФФД: 1.0 [14:42:59]line ЗНМ: 0300000233 [14:42:59]line РНМ: 0000000000145775 [14:42:59]line Версия ККМ: v1.0 [14:42:59]line ФМ: 0000000000959360 [14:42:59]line ФД: 4270 [14:42:59]line ФПД: 260612448323743 [14:42:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144302&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4270&fm=260612448323743&tin=02508201610067®Number=0000000000145775&sum=10000 [14:42:59]line 0 [14:42:59]OFD Sender: Processing packet 4270 [packets to send 2, broken 1] [14:42:59]ProducePacketName [14:42:59]name=ofd_packets/00004270 [14:42:59]OFD Sender: To server: pG, [14:42:59]CommunicateWithHost lk.salyk.kg:30040 [14:42:59]ConnectInit lk.salyk.kg [14:42:59]written 0, free lines is 4095 [14:42:59]Connected sock=10 [14:42:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 44 01 00 00 4E 7D 3C 01 D3 49 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 2D 00 00 00 F4 03 04 00 F6 CA 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AE 10 00 00 35 04 06 00 ED 06 90 68 08 9F 01 75 6D C9 48 0F 6F 28 [14:42:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 B4 A0 47 00 96 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AE 10 00 00 F4 03 04 00 F6 76 61 66 B6 04 01 00 00 90 76 95 30 D9 0C CD DC [14:42:59]CommunicateWithHost err = 0 [14:42:59]CheckOFDResponse [14:42:59]1017 (14) - 77093643461234 [14:42:59]1041 (16) - 0000000000959360 [14:42:59]1040 (4) - 4270 [14:42:59]1012 (4) - 06.06.2024 08:44 [14:42:59]1206 (1) - 0 [14:42:59]OFD Sender: Remove packet 4270 [14:42:59]ProducePacketName [14:42:59]name=ofd_packets/00004270 [14:42:59]NVStorageDeleteData [14:42:59]Write to MH i2c: 01 00 00 30 17 47 [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 07 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 C3 0C 1D [14:42:59]RasterBufferAndPrint [14:42:59]line [14:42:59]line [14:42:59]line [14:42:59]line [14:42:59]line [14:42:59]written 0, free lines is 3271 [14:42:59]MH_Cut [14:42:59]Write to MH i2c: D1 01 00 37 17 01 20 [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: D1 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: D1 01 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: D1 01 00 37 17 00 1F [14:42:59]Write to MH i2c: 01 00 00 38 17 4F [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:43:00]OFD Sender: No OFD packet to send [14:43:00]*** Cut start [14:43:00]*** Partial cut [14:43:00]*** CUTSNS_PIN = 1 [14:43:00]*** CUTSNS_PIN = 0 [14:43:00]*** Brake cut motor [14:43:01]Read from MH i2c: 01 [14:43:01]MH_I2C_Read... [14:43:01]*** Stop cut motor [14:43:01]*** Cut end [14:43:01]Read from MH i2c: 01 07 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: 01 07 00 38 17 00 00 00 00 00 FF 0F 64 [14:43:01]process_action close_receipt done [14:43:01]requested_data is exist [14:43:01]produce_requested_data [14:43:01]requested_item fm.sn is exist - process it [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 11 00 00 [14:43:01]Write to MH i2c: E2 08 00 39 17 80 11 00 00 00 00 00 00 CA [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 17 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 17 00 39 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 1D [14:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:43:01]wFMCommunicate OK [14:43:01]requested_item fd.num is exist - process it [14:43:01]SAM_PROTO_GetFieldsCounters [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 13 00 00 [14:43:01]Write to MH i2c: E2 08 00 3A 17 80 13 00 00 00 00 00 00 CD [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 62 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 62 00 3A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AE 10 00 00 0E 04 04 00 55 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 8C [14:43:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AE 10 00 00 0E 04 04 00 55 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 [14:43:01]wFMCommunicate OK [14:43:01]SAM_PROTO_GetFieldsCounters done [14:43:01]requested_item shift.num is exist - process it [14:43:01]requested_item shift.opened is exist - process it [14:43:01]req_shift_opened [14:43:01]FM_GetShiftState [14:43:01]SAM_PROTO_GetShiftState [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 13 01 00 [14:43:01]Write to MH i2c: E2 08 00 3B 17 80 13 01 00 00 00 00 00 CF [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 0E 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 0E 00 3B 17 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 88 [14:43:01]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:43:01]wFMCommunicate OK [14:43:01]SAM_PROTO_GetShiftState done [14:43:01]FM_GetShiftState done [14:43:01]req_shift_opened done [14:43:01]requested_item shift.open_date is exist - process it [14:43:01]req_shift_open_date [14:43:01]req_shift_open_date done [14:43:01]produce_requested_data done [14:43:01]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4270,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:43:01]process_action_free close_receipt [14:43:01]json_value_free [14:43:01]json_value_free done [14:43:01]process_json_proto returns [14:43:01]Send response to host [14:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4270,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:43:01]free response buf [14:43:01]execute_script done [14:43:01]execute_script returns [14:43:01]free content buf [14:43:01]Sock 9.Close socket [14:43:01]Sock 9.Thread stoped [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:23]accept exits with 8 [14:45:23]New connection [14:45:23]New thread 3066772836 created [14:45:23]Thread 3066629476 joined [14:45:23]Waiting for new connection... [14:45:23] Sock 8.Parse request [14:45:23]Sock 8.Check first char [14:45:23]Sock 8.First char is OK [14:45:23]request: POST /json_proto HTTP/1.0 [14:45:23]Method: POST [14:45:23]URL: /json_proto [14:45:23]Method is POST - this is cgi request [14:45:23]url: /json_proto [14:45:23]query_string will be loaded in cgi processing [14:45:23]execute_cgi json_proto POST (null) [14:45:23]execute_cgi path=json_proto method=POST [14:45:23]POST find Content-Length [14:45:23]Host: 172.17.56.68:8080 [14:45:23]Content-Length: 685 [14:45:23]Content-Type: application/json [14:45:23] [14:45:23]POST finish read [14:45:23]Found Content-Length = 685 [14:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4523", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:23]execute_script... [14:45: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 : (3)4523", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:23]POST & json_proto [14:45:23]process_json_proto [14:45:23]json parsed OK: [14:45:23]protocol is kg_v1.0 [14:45:23]action value=close_receipt [14:45:23]process_action close_receipt [14:45:23]cmd_close_receipt [14:45:23]MH_GetDate [14:45:23]Write to MH i2c: F0 00 00 3C 17 42 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: F0 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: F0 09 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: F0 09 00 3C 17 00 88 CB 61 66 3A 8F 60 66 F4 [14:45:23]GetLastDocTimeStamp 1717684982 [14:45:23]current date 1717685128 [14:45:23]FM_GetShiftState [14:45:23]SAM_PROTO_GetShiftState [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 13 01 00 [14:45:23]Write to MH i2c: E2 08 00 3D 17 80 13 01 00 00 00 00 00 D1 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 0E 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 0E 00 3D 17 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 8A [14:45:23]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:45:23]wFMCommunicate OK [14:45:23]SAM_PROTO_GetShiftState done [14:45:23]FM_GetShiftState done [14:45:23]opened in 1717632745 [14:45:23]opened+sec_in_day 1717719145 [14:45:23]quantity*price = 4000 [14:45:23]sum+1 = 4001 [14:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 46 06.06.2024 14:45 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4271 ФПД: 100193342950324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144528&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4271&fm=100193342950324&tin=02508201610067®Number=0000000000145775&sum=4000 0 [14:45:24]StoreToDocumentArchive [14:45:24]shift 85 fd 4271 [14:45:24]save to /storage/0085/doc_00004271 [14:45:24]save last doc name /storage/0085/doc_00004271 to /storage/kkm_last_doc_name [14:45:24]save OK [14:45:24]Clear old archive folders... [14:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=298 [14:45:24]tlvbuf is 019FA740 [14:45:24]SAM_PROTO_ClearQueue [14:45:24]wFMCommunicate request_size=4 [14:45:24]MH_SAM_APDU [14:45:24]CAPDU: 80 09 00 00 [14:45:24]Write to MH i2c: E2 08 00 4A 17 80 09 00 00 00 00 00 00 D3 [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:24]Read from MH i2c: E2 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 03 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [14:45:24]RAPDU: 90 00 [14:45:24]wFMCommunicate OK [14:45:24]SAM_PROTO_ClearQueue done [14:45:24]KKMCreateOFDPacket [14:45:24]OFDProtocolAddRootSTLVToBuf [14:45:24]FM_MakeSignedData [14:45:24]FM_MakeSignedData [14:45:24]SAM_PROTO_SignData [14:45:24]wFMCommunicate request_size=4 [14:45:24]MH_SAM_APDU [14:45:24]CAPDU: 80 0D 01 02 [14:45:24]Write to MH i2c: E2 08 00 4B 17 80 0D 01 02 00 00 00 00 DB [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:24]Read from MH i2c: E2 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 03 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [14:45:24]RAPDU: 90 00 [14:45:24]wFMCommunicate OK [14:45:24]wFMCommunicate request_size=255 [14:45:24]MH_SAM_APDU [14:45:24]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 88 CB 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [14:45:24]Write to MH i2c: E2 02 01 4C 17 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 88 CB 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 AC [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:24]Read from MH i2c: E2 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 03 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [14:45:24]RAPDU: 90 00 [14:45:24]wFMCommunicate OK [14:45:24]wFMCommunicate request_size=57 [14:45:24]MH_SAM_APDU [14:45:24]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AF 10 00 00 35 04 06 00 5B 20 14 9D 8B B4 [14:45:24]Write to MH i2c: E2 3C 00 4D 17 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AF 10 00 00 35 04 06 00 5B 20 14 9D 8B B4 00 00 C9 [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:24]Read from MH i2c: E2 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 03 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [14:45:24]RAPDU: 90 00 [14:45:24]wFMCommunicate OK [14:45:24]wFMCommunicate request_size=4 [14:45:24]MH_SAM_APDU [14:45:24]CAPDU: 80 0D 03 02 [14:45:24]Write to MH i2c: E2 08 00 4E 17 80 0D 03 02 00 00 00 00 E0 [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:24]Read from MH i2c: E2 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 0B 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 0B 00 4E 17 00 3D FA 12 34 EF 5D 68 44 90 00 56 [14:45:24]RAPDU: 3D FA 12 34 EF 5D 68 44 90 00 [14:45:24]wFMCommunicate OK [14:45:24]SAM_PROTO_SignData done [14:45:24]FM_MakeSignedData done [14:45:24]CreateOFDProtocolMessage [14:45:24]wFMCommunicate request_size=4 [14:45:24]MH_SAM_APDU [14:45:24]CAPDU: 80 11 00 00 [14:45:24]Write to MH i2c: E2 08 00 4F 17 80 11 00 00 00 00 00 00 E0 [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:24]Read from MH i2c: E2 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 17 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 17 00 4F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 33 [14:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:45:24]wFMCommunicate OK [14:45:24]CreateOFDProtocolMessage done [14:45:24]OFDSenderStorePacket 4271 [14:45:24]StoreOFDPacket docnum=4271 [14:45:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3E 01 00 00 C7 28 36 01 0C 29 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 88 CB 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AF 10 00 00 35 04 06 00 5B 20 14 9D 8B B4 3D FA 12 34 EF 5D 68 44 [14:45:24]CheckFolder [14:45:24]dirname=/storage/ofd_packets [14:45:24]CheckFolder done [14:45:24]ProducePacketName [14:45:24]name=ofd_packets/00004271 [14:45:24]NVStorageSaveData ofd_packets/00004271 [14:45:24]File name is /storage/ofd_packets/00004271 [14:45:24]Write 348 bytes [14:45:24]NVStorageSaveData done [14:45:24]OFDSenderStorePacket done [14:45:24]KKMCreateOFDPacket done [14:45:24]NVStorageSaveData kkm_last_timestamp [14:45:24]File name is /storage/kkm_last_timestamp [14:45:24]Write 4 bytes [14:45:24]NVStorageSaveData done [14:45:24]ExternCall_PrintAddStr [14:45:24]wPrintStart [14:45:24]Write to MH i2c: 01 00 00 50 17 67 [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: 01 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: 01 07 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [14:45:24]RasterBufferAndPrint [14:45:24]line Счет N : (3)4523 [14:45:24]line ИНН: 02508201610067 [14:45:24]line Контрольно-Кассовый Чек [14:45:24]line ПРОДАЖА [14:45:24]line Товар: 4700003010483 [14:45:24]line Напиток Let`s Go! с/с яблоко ПЭТ 0,5л [14:45:24]line 1.000 * 40.00 [14:45:24]line = 40.00 [14:45:24]line НДС 12% НСП 1% [14:45:24]line > о реализуемом товаре [14:45:24]line ИТОГО: 40.00 [14:45:24]line НСП 1% : 0.35 [14:45:24]line НДС 12% : 4.25 [14:45:24]line Наличными: 40.00 [14:45:24]line Безнал.: 0.00 [14:45:24]line Место: АЗС № 116 "Партнер Нефть" [14:45:24]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:45:24]line СНО: Общий режим [14:45:25]line Чек 46 06.06.2024 14:45 [14:45:25]line Смена: 85 ФФД: 1.0 [14:45:25]line ЗНМ: 0300000233 [14:45:25]line РНМ: 0000000000145775 [14:45:25]line Версия ККМ: v1.0 [14:45:25]line ФМ: 0000000000959360 [14:45:25]line ФД: 4271 [14:45:25]line ФПД: 100193342950324 [14:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144528&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4271&fm=100193342950324&tin=02508201610067®Number=0000000000145775&sum=4000 [14:45:25]line 0 [14:45:25]OFD Sender: Processing packet 4271 [packets to send 2, broken 1] [14:45:25]ProducePacketName [14:45:25]name=ofd_packets/00004271 [14:45:25]OFD Sender: To server: pG, [14:45:25]CommunicateWithHost lk.salyk.kg:30040 [14:45:25]ConnectInit lk.salyk.kg [14:45:25]written 0, free lines is 4095 [14:45:25]Connected sock=10 [14:45:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3E 01 00 00 C7 28 36 01 0C 29 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 88 CB 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 AF 10 00 00 35 04 06 00 5B 20 14 9D 8B B4 3D FA 12 34 EF 5D 68 44 [14:45:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 08 1F 47 00 95 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 39 35 39 33 36 30 10 04 04 00 AF 10 00 00 F4 03 04 00 87 77 61 66 B6 04 01 00 00 78 5F 8F 72 29 8F B8 D5 [14:45:25]CommunicateWithHost err = 0 [14:45:25]CheckOFDResponse [14:45:25]1017 (14) - 77093643461234 [14:45:25]1041 (16) - 0000000000959360 [14:45:25]1040 (4) - 4271 [14:45:25]1012 (4) - 06.06.2024 08:47 [14:45:25]1206 (1) - 0 [14:45:25]OFD Sender: Remove packet 4271 [14:45:25]ProducePacketName [14:45:25]name=ofd_packets/00004271 [14:45:25]NVStorageDeleteData [14:45:25]Write to MH i2c: 01 00 00 79 17 90 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: 01 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: 01 07 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: 01 07 00 79 17 00 00 00 00 00 B7 0C 5A [14:45:25]RasterBufferAndPrint [14:45:25]line [14:45:25]line [14:45:25]line [14:45:25]line [14:45:25]line [14:45:25]written 0, free lines is 3259 [14:45:25]MH_Cut [14:45:25]Write to MH i2c: D1 01 00 80 17 01 69 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: D1 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: D1 01 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: D1 01 00 80 17 00 68 [14:45:25]Write to MH i2c: 01 00 00 81 17 98 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:26]OFD Sender: No OFD packet to send [14:45:26]*** Cut start [14:45:26]*** Partial cut [14:45:26]*** CUTSNS_PIN = 1 [14:45:26]*** CUTSNS_PIN = 0 [14:45:26]*** Brake cut motor [14:45:27]Read from MH i2c: 01 [14:45:27]MH_I2C_Read... [14:45:27]*** Stop cut motor [14:45:27]*** Cut end [14:45:27]Read from MH i2c: 01 07 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 07 00 81 17 00 00 00 00 00 FF 0F AD [14:45:27]process_action close_receipt done [14:45:27]requested_data is exist [14:45:27]produce_requested_data [14:45:27]requested_item fm.sn is exist - process it [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 11 00 00 [14:45:27]Write to MH i2c: E2 08 00 82 17 80 11 00 00 00 00 00 00 13 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 17 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 17 00 82 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 66 [14:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:45:27]wFMCommunicate OK [14:45:27]requested_item fd.num is exist - process it [14:45:27]SAM_PROTO_GetFieldsCounters [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 13 00 00 [14:45:27]Write to MH i2c: E2 08 00 83 17 80 13 00 00 00 00 00 00 16 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 62 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 62 00 83 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AF 10 00 00 0E 04 04 00 55 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 D9 [14:45:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 AF 10 00 00 0E 04 04 00 55 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 [14:45:27]wFMCommunicate OK [14:45:27]SAM_PROTO_GetFieldsCounters done [14:45:27]requested_item shift.num is exist - process it [14:45:27]requested_item shift.opened is exist - process it [14:45:27]req_shift_opened [14:45:27]FM_GetShiftState [14:45:27]SAM_PROTO_GetShiftState [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 13 01 00 [14:45:27]Write to MH i2c: E2 08 00 84 17 80 13 01 00 00 00 00 00 18 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 0E 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 0E 00 84 17 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 D1 [14:45:27]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:45:27]wFMCommunicate OK [14:45:27]SAM_PROTO_GetShiftState done [14:45:27]FM_GetShiftState done [14:45:27]req_shift_opened done [14:45:27]requested_item shift.open_date is exist - process it [14:45:27]req_shift_open_date [14:45:27]req_shift_open_date done [14:45:27]produce_requested_data done [14:45:27]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4271,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:45:27]process_action_free close_receipt [14:45:27]json_value_free [14:45:27]json_value_free done [14:45:27]process_json_proto returns [14:45:27]Send response to host [14:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4271,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:45:27]free response buf [14:45:27]execute_script done [14:45:27]execute_script returns [14:45:27]free content buf [14:45:27]Sock 8.Close socket [14:45:27]Sock 8.Thread stoped [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:51]accept exits with 9 [14:46:51]New connection [14:46:51]New thread 3066629476 created [14:46:51]Thread 3066772836 joined [14:46:51]Waiting for new connection... [14:46:51] Sock 9.Parse request [14:46:51]Sock 9.Check first char [14:46:51]Sock 9.First char is OK [14:46:51]request: POST /json_proto HTTP/1.0 [14:46:51]Method: POST [14:46:51]URL: /json_proto [14:46:51]Method is POST - this is cgi request [14:46:51]url: /json_proto [14:46:51]query_string will be loaded in cgi processing [14:46:51]execute_cgi json_proto POST (null) [14:46:51]execute_cgi path=json_proto method=POST [14:46:51]POST find Content-Length [14:46:51]Host: 172.17.56.68:8080 [14:46:51]Content-Length: 624 [14:46:51]Content-Type: application/json [14:46:51] [14:46:51]POST finish read [14:46:51]Found Content-Length = 624 [14:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4524", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:51]execute_script... [14:46: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 : (3)4524", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:51]POST & json_proto [14:46:51]process_json_proto [14:46:51]json parsed OK: [14:46:51]protocol is kg_v1.0 [14:46:51]action value=close_receipt [14:46:51]process_action close_receipt [14:46:51]cmd_close_receipt [14:46:51]MH_GetDate [14:46:51]Write to MH i2c: F0 00 00 85 17 8B [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: F0 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: F0 09 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: F0 09 00 85 17 00 E0 CB 61 66 3A 8F 60 66 95 [14:46:51]GetLastDocTimeStamp 1717685128 [14:46:51]current date 1717685216 [14:46:51]FM_GetShiftState [14:46:51]SAM_PROTO_GetShiftState [14:46:51]wFMCommunicate request_size=4 [14:46:51]MH_SAM_APDU [14:46:51]CAPDU: 80 13 01 00 [14:46:51]Write to MH i2c: E2 08 00 86 17 80 13 01 00 00 00 00 00 1A [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:51]Read from MH i2c: E2 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 0E 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 0E 00 86 17 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 D3 [14:46:51]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:46:51]wFMCommunicate OK [14:46:51]SAM_PROTO_GetShiftState done [14:46:51]FM_GetShiftState done [14:46:51]opened in 1717632745 [14:46:51]opened+sec_in_day 1717719145 [14:46:51]quantity*price = 15500 [14:46:51]sum+1 = 15501 [14:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 47 06.06.2024 14:46 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4272 ФПД: 80085157113816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144656&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4272&fm=80085157113816&tin=02508201610067®Number=0000000000145775&sum=15500 0 [14:46:52]StoreToDocumentArchive [14:46:52]shift 85 fd 4272 [14:46:52]save to /storage/0085/doc_00004272 [14:46:52]save last doc name /storage/0085/doc_00004272 to /storage/kkm_last_doc_name [14:46:52]save OK [14:46:52]Clear old archive folders... [14:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:46:52]tlvbuf is 019F9F40 [14:46:52]SAM_PROTO_ClearQueue [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 09 00 00 [14:46:52]Write to MH i2c: E2 08 00 93 17 80 09 00 00 00 00 00 00 1C [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 93 17 00 90 00 1E [14:46:52]RAPDU: 90 00 [14:46:52]wFMCommunicate OK [14:46:52]SAM_PROTO_ClearQueue done [14:46:52]KKMCreateOFDPacket [14:46:52]OFDProtocolAddRootSTLVToBuf [14:46:52]FM_MakeSignedData [14:46:52]FM_MakeSignedData [14:46:52]SAM_PROTO_SignData [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 0D 01 02 [14:46:52]Write to MH i2c: E2 08 00 94 17 80 0D 01 02 00 00 00 00 24 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 94 17 00 90 00 1F [14:46:52]RAPDU: 90 00 [14:46:52]wFMCommunicate OK [14:46:52]wFMCommunicate request_size=255 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 E0 CB 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 [14:46:52]Write to MH i2c: E2 02 01 95 17 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 E0 CB 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 00 00 D4 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [14:46:52]RAPDU: 90 00 [14:46:52]wFMCommunicate OK [14:46:52]wFMCommunicate request_size=37 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B0 10 00 00 35 04 06 00 48 D6 47 57 6F D8 [14:46:52]Write to MH i2c: E2 28 00 96 17 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B0 10 00 00 35 04 06 00 48 D6 47 57 6F D8 00 00 41 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [14:46:52]RAPDU: 90 00 [14:46:52]wFMCommunicate OK [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 0D 03 02 [14:46:52]Write to MH i2c: E2 08 00 97 17 80 0D 03 02 00 00 00 00 29 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0B 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0B 00 97 17 00 95 B5 A5 C9 E7 78 C5 A5 90 00 AB [14:46:52]RAPDU: 95 B5 A5 C9 E7 78 C5 A5 90 00 [14:46:52]wFMCommunicate OK [14:46:52]SAM_PROTO_SignData done [14:46:52]FM_MakeSignedData done [14:46:52]CreateOFDProtocolMessage [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 11 00 00 [14:46:52]Write to MH i2c: E2 08 00 98 17 80 11 00 00 00 00 00 00 29 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 17 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 17 00 98 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 7C [14:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:46:52]wFMCommunicate OK [14:46:52]CreateOFDProtocolMessage done [14:46:52]OFDSenderStorePacket 4272 [14:46:52]StoreOFDPacket docnum=4272 [14:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 4C C6 22 01 B1 2A 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 E0 CB 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B0 10 00 00 35 04 06 00 48 D6 47 57 6F D8 95 B5 A5 C9 E7 78 C5 A5 [14:46:52]CheckFolder [14:46:52]dirname=/storage/ofd_packets [14:46:52]CheckFolder done [14:46:52]ProducePacketName [14:46:52]name=ofd_packets/00004272 [14:46:52]NVStorageSaveData ofd_packets/00004272 [14:46:52]File name is /storage/ofd_packets/00004272 [14:46:52]Write 328 bytes [14:46:52]NVStorageSaveData done [14:46:52]OFDSenderStorePacket done [14:46:52]KKMCreateOFDPacket done [14:46:52]NVStorageSaveData kkm_last_timestamp [14:46:52]File name is /storage/kkm_last_timestamp [14:46:52]Write 4 bytes [14:46:52]NVStorageSaveData done [14:46:52]ExternCall_PrintAddStr [14:46:52]wPrintStart [14:46:52]Write to MH i2c: 01 00 00 99 17 B0 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: 01 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: 01 07 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: 01 07 00 99 17 00 00 00 00 00 FF 0F C5 [14:46:52]RasterBufferAndPrint [14:46:52]line Счет N : (3)4524 [14:46:52]line ИНН: 02508201610067 [14:46:52]line Контрольно-Кассовый Чек [14:46:52]line ПРОДАЖА [14:46:52]line Товар: 48745895 [14:46:52]line Сигареты RICHMOND KS GOLD EDITION [14:46:52]line 1.000 * 155.00 [14:46:52]line = 155.00 [14:46:52]line НДС 12% НСП 1% [14:46:52]line > о реализуемом товаре [14:46:52]line ИТОГО: 155.00 [14:46:52]line НСП 1% : 1.37 [14:46:52]line НДС 12% : 16.46 [14:46:52]line Наличными: 155.00 [14:46:52]line Безнал.: 0.00 [14:46:52]line Место: АЗС № 116 "Партнер Нефть" [14:46:52]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:46:52]line СНО: Общий режим [14:46:52]line Чек 47 06.06.2024 14:46 [14:46:52]line Смена: 85 ФФД: 1.0 [14:46:52]line ЗНМ: 0300000233 [14:46:52]line РНМ: 0000000000145775 [14:46:52]line Версия ККМ: v1.0 [14:46:52]line ФМ: 0000000000959360 [14:46:52]line ФД: 4272 [14:46:52]line ФПД: 80085157113816 [14:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T144656&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4272&fm=80085157113816&tin=02508201610067®Number=0000000000145775&sum=15500 [14:46:53]line 0 [14:46:53]OFD Sender: Processing packet 4272 [packets to send 2, broken 1] [14:46:53]ProducePacketName [14:46:53]name=ofd_packets/00004272 [14:46:53]OFD Sender: To server: pG, [14:46:53]CommunicateWithHost lk.salyk.kg:30040 [14:46:53]ConnectInit lk.salyk.kg [14:46:53]written 0, free lines is 4095 [14:46:53]Connected sock=10 [14:46:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2A 01 00 00 4C C6 22 01 B1 2A 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 E0 CB 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B0 10 00 00 35 04 06 00 48 D6 47 57 6F D8 95 B5 A5 C9 E7 78 C5 A5 [14:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 FE 37 47 00 E4 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B0 10 00 00 F4 03 04 00 DF 77 61 66 B6 04 01 00 00 62 74 32 27 FE 6D 97 E5 [14:46:53]CommunicateWithHost err = 0 [14:46:53]CheckOFDResponse [14:46:53]1017 (14) - 77093643461234 [14:46:53]1041 (16) - 0000000000959360 [14:46:53]1040 (4) - 4272 [14:46:53]1012 (4) - 06.06.2024 08:48 [14:46:53]1206 (1) - 0 [14:46:53]OFD Sender: Remove packet 4272 [14:46:53]ProducePacketName [14:46:53]name=ofd_packets/00004272 [14:46:53]NVStorageDeleteData [14:46:53]Write to MH i2c: 01 00 00 C2 17 D9 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 07 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 07 00 C2 17 00 00 00 00 00 C4 0C B0 [14:46:53]RasterBufferAndPrint [14:46:53]line [14:46:53]line [14:46:53]line [14:46:53]line [14:46:53]line [14:46:53]written 0, free lines is 3272 [14:46:53]MH_Cut [14:46:53]Write to MH i2c: D1 01 00 C9 17 01 B2 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: D1 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: D1 01 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: D1 01 00 C9 17 00 B1 [14:46:53]Write to MH i2c: 01 00 00 CA 17 E1 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:54]OFD Sender: No OFD packet to send [14:46:54]*** Cut start [14:46:54]*** Partial cut [14:46:54]*** CUTSNS_PIN = 1 [14:46:54]*** CUTSNS_PIN = 0 [14:46:54]*** Brake cut motor [14:46:55]Read from MH i2c: 01 [14:46:55]MH_I2C_Read... [14:46:55]*** Stop cut motor [14:46:55]*** Cut end [14:46:55]Read from MH i2c: 01 07 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: 01 07 00 CA 17 00 00 00 00 00 FF 0F F6 [14:46:55]process_action close_receipt done [14:46:55]requested_data is exist [14:46:55]produce_requested_data [14:46:55]requested_item fm.sn is exist - process it [14:46:55]wFMCommunicate request_size=4 [14:46:55]MH_SAM_APDU [14:46:55]CAPDU: 80 11 00 00 [14:46:55]Write to MH i2c: E2 08 00 CB 17 80 11 00 00 00 00 00 00 5C [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 17 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 17 00 CB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 AF [14:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:46:55]wFMCommunicate OK [14:46:55]requested_item fd.num is exist - process it [14:46:55]SAM_PROTO_GetFieldsCounters [14:46:55]wFMCommunicate request_size=4 [14:46:55]MH_SAM_APDU [14:46:55]CAPDU: 80 13 00 00 [14:46:55]Write to MH i2c: E2 08 00 CC 17 80 13 00 00 00 00 00 00 5F [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 62 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 62 00 CC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B0 10 00 00 0E 04 04 00 55 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 26 [14:46:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B0 10 00 00 0E 04 04 00 55 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 [14:46:55]wFMCommunicate OK [14:46:55]SAM_PROTO_GetFieldsCounters done [14:46:55]requested_item shift.num is exist - process it [14:46:55]requested_item shift.opened is exist - process it [14:46:55]req_shift_opened [14:46:55]FM_GetShiftState [14:46:55]SAM_PROTO_GetShiftState [14:46:55]wFMCommunicate request_size=4 [14:46:55]MH_SAM_APDU [14:46:55]CAPDU: 80 13 01 00 [14:46:55]Write to MH i2c: E2 08 00 CD 17 80 13 01 00 00 00 00 00 61 [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 0E 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 0E 00 CD 17 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 1A [14:46:55]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:46:55]wFMCommunicate OK [14:46:55]SAM_PROTO_GetShiftState done [14:46:55]FM_GetShiftState done [14:46:55]req_shift_opened done [14:46:55]requested_item shift.open_date is exist - process it [14:46:55]req_shift_open_date [14:46:55]req_shift_open_date done [14:46:55]produce_requested_data done [14:46:55]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4272,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:46:55]process_action_free close_receipt [14:46:55]json_value_free [14:46:55]json_value_free done [14:46:55]process_json_proto returns [14:46:55]Send response to host [14:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4272,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:46:55]free response buf [14:46:55]execute_script done [14:46:55]execute_script returns [14:46:55]free content buf [14:46:55]Sock 9.Close socket [14:46:55]Sock 9.Thread stoped [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]accept exits with 8 [14:59:44]New connection [14:59:44]New thread 3066772836 created [14:59:44]Thread 3066629476 joined [14:59:44]Waiting for new connection... [14:59:44] Sock 8.Parse request [14:59:44]Sock 8.Check first char [14:59:44]Sock 8.First char is OK [14:59:44]request: POST /json_proto HTTP/1.0 [14:59:44]Method: POST [14:59:44]URL: /json_proto [14:59:44]Method is POST - this is cgi request [14:59:44]url: /json_proto [14:59:44]query_string will be loaded in cgi processing [14:59:44]execute_cgi json_proto POST (null) [14:59:44]execute_cgi path=json_proto method=POST [14:59:44]POST find Content-Length [14:59:44]Host: 172.17.56.68:8080 [14:59:44]Content-Length: 882 [14:59:44]Content-Type: application/json [14:59:44] [14:59:44]POST finish read [14:59:44]Found Content-Length = 882 [14:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4525", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:44]execute_script... [14: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 : (3)4525", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:44]POST & json_proto [14:59:44]process_json_proto [14:59:44]json parsed OK: [14:59:44]protocol is kg_v1.0 [14:59:44]action value=close_receipt [14:59:44]process_action close_receipt [14:59:44]cmd_close_receipt [14:59:44]MH_GetDate [14:59:44]Write to MH i2c: F0 00 00 CE 17 D4 [14:59:44]Write i2c OK [14:59:44]MH_I2C_Read... [14:59:44]Read from MH i2c: F0 [14:59:44]MH_I2C_Read... [14:59:44]Read from MH i2c: F0 09 00 [14:59:44]MH_I2C_Read... [14:59:44]Read from MH i2c: F0 09 00 CE 17 00 E5 CE 61 66 3A 8F 60 66 E6 [14:59:44]GetLastDocTimeStamp 1717685216 [14:59:44]current date 1717685989 [14:59:44]FM_GetShiftState [14:59:44]SAM_PROTO_GetShiftState [14:59:44]wFMCommunicate request_size=4 [14:59:44]MH_SAM_APDU [14:59:44]CAPDU: 80 13 01 00 [14:59:44]Write to MH i2c: E2 08 00 CF 17 80 13 01 00 00 00 00 00 63 [14:59:44]Write i2c OK [14:59:44]MH_I2C_Read... [14:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:44]Read from MH i2c: E2 [14:59:44]MH_I2C_Read... [14:59:44]Read from MH i2c: E2 0E 00 [14:59:44]MH_I2C_Read... [14:59:44]Read from MH i2c: E2 0E 00 CF 17 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 1C [14:59:44]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:59:44]wFMCommunicate OK [14:59:44]SAM_PROTO_GetShiftState done [14:59:44]FM_GetShiftState done [14:59:44]opened in 1717632745 [14:59:44]opened+sec_in_day 1717719145 [14:59:44]quantity*price = 13500 [14:59:44]sum+1 = 13501 [14:59:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310036 Вода Жалалабат 27 0,5л 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.06 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 48 06.06.2024 14:59 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4273 ФПД: 90064122148616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T145949&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4273&fm=90064122148616&tin=02508201610067®Number=0000000000145775&sum=17000 0 [14:59:45]StoreToDocumentArchive [14:59:45]shift 85 fd 4273 [14:59:45]save to /storage/0085/doc_00004273 [14:59:45]save last doc name /storage/0085/doc_00004273 to /storage/kkm_last_doc_name [14:59:45]save OK [14:59:45]Clear old archive folders... [14:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=380 [14:59:45]tlvbuf is 019F49D0 [14:59:45]SAM_PROTO_ClearQueue [14:59:45]wFMCommunicate request_size=4 [14:59:45]MH_SAM_APDU [14:59:45]CAPDU: 80 09 00 00 [14:59:45]Write to MH i2c: E2 08 00 DC 17 80 09 00 00 00 00 00 00 65 [14:59:45]Write i2c OK [14:59:45]MH_I2C_Read... [14:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:45]Read from MH i2c: E2 [14:59:45]MH_I2C_Read... [14:59:45]Read from MH i2c: E2 03 00 [14:59:45]MH_I2C_Read... [14:59:45]Read from MH i2c: E2 03 00 DC 17 00 90 00 67 [14:59:45]RAPDU: 90 00 [14:59:45]wFMCommunicate OK [14:59:45]SAM_PROTO_ClearQueue done [14:59:45]KKMCreateOFDPacket [14:59:45]OFDProtocolAddRootSTLVToBuf [14:59:45]FM_MakeSignedData [14:59:45]FM_MakeSignedData [14:59:45]SAM_PROTO_SignData [14:59:45]wFMCommunicate request_size=4 [14:59:45]MH_SAM_APDU [14:59:45]CAPDU: 80 0D 01 02 [14:59:45]Write to MH i2c: E2 08 00 DD 17 80 0D 01 02 00 00 00 00 6D [14:59:45]Write i2c OK [14:59:45]MH_I2C_Read... [14:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:45]Read from MH i2c: E2 [14:59:45]MH_I2C_Read... [14:59:45]Read from MH i2c: E2 03 00 [14:59:45]MH_I2C_Read... [14:59:45]Read from MH i2c: E2 03 00 DD 17 00 90 00 68 [14:59:45]RAPDU: 90 00 [14:59:45]wFMCommunicate OK [14:59:45]wFMCommunicate request_size=255 [14:59:45]MH_SAM_APDU [14:59:45]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 [14:59:45]Write to MH i2c: E2 02 01 DE 17 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 2D [14:59:45]Write i2c OK [14:59:45]MH_I2C_Read... [14:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:45]Read from MH i2c: E2 [14:59:45]MH_I2C_Read... [14:59:45]Read from MH i2c: E2 03 00 [14:59:45]MH_I2C_Read... [14:59:45]Read from MH i2c: E2 03 00 DE 17 00 90 00 69 [14:59:45]RAPDU: 90 00 [14:59:45]wFMCommunicate OK [14:59:45]wFMCommunicate request_size=139 [14:59:45]MH_SAM_APDU [14:59:45]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 68 42 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 E5 CE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B1 10 00 00 35 04 06 00 51 E9 B0 01 F7 08 [14:59:45]Write to MH i2c: E2 8E 00 DF 17 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 68 42 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 E5 CE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B1 10 00 00 35 04 06 00 51 E9 B0 01 F7 08 00 00 16 [14:59:45]Write i2c OK [14:59:45]MH_I2C_Read... [14:59:45]Read from MH i2c: E2 [14:59:46]MH_I2C_Read... [14:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:46]Read from MH i2c: E2 03 00 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: E2 03 00 DF 17 00 90 00 6A [14:59:46]RAPDU: 90 00 [14:59:46]wFMCommunicate OK [14:59:46]wFMCommunicate request_size=4 [14:59:46]MH_SAM_APDU [14:59:46]CAPDU: 80 0D 03 02 [14:59:46]Write to MH i2c: E2 08 00 E0 17 80 0D 03 02 00 00 00 00 72 [14:59:46]Write i2c OK [14:59:46]MH_I2C_Read... [14:59:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:46]Read from MH i2c: E2 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: E2 0B 00 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: E2 0B 00 E0 17 00 CE 8B 3B EC AB 79 E2 0A 90 00 03 [14:59:46]RAPDU: CE 8B 3B EC AB 79 E2 0A 90 00 [14:59:46]wFMCommunicate OK [14:59:46]SAM_PROTO_SignData done [14:59:46]FM_MakeSignedData done [14:59:46]CreateOFDProtocolMessage [14:59:46]wFMCommunicate request_size=4 [14:59:46]MH_SAM_APDU [14:59:46]CAPDU: 80 11 00 00 [14:59:46]Write to MH i2c: E2 08 00 E1 17 80 11 00 00 00 00 00 00 72 [14:59:46]Write i2c OK [14:59:46]MH_I2C_Read... [14:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:46]Read from MH i2c: E2 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: E2 17 00 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: E2 17 00 E1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 C5 [14:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:59:46]wFMCommunicate OK [14:59:46]CreateOFDProtocolMessage done [14:59:46]OFDSenderStorePacket 4273 [14:59:46]StoreOFDPacket docnum=4273 [14:59:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 01 00 00 88 56 88 01 B2 C4 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 68 42 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 E5 CE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B1 10 00 00 35 04 06 00 51 E9 B0 01 F7 08 CE 8B 3B EC AB 79 E2 0A [14:59:46]CheckFolder [14:59:46]dirname=/storage/ofd_packets [14:59:46]CheckFolder done [14:59:46]ProducePacketName [14:59:46]name=ofd_packets/00004273 [14:59:46]NVStorageSaveData ofd_packets/00004273 [14:59:46]File name is /storage/ofd_packets/00004273 [14:59:46]Write 430 bytes [14:59:46]NVStorageSaveData done [14:59:46]OFDSenderStorePacket done [14:59:46]KKMCreateOFDPacket done [14:59:46]NVStorageSaveData kkm_last_timestamp [14:59:46]File name is /storage/kkm_last_timestamp [14:59:46]Write 4 bytes [14:59:46]NVStorageSaveData done [14:59:46]ExternCall_PrintAddStr [14:59:46]wPrintStart [14:59:46]Write to MH i2c: 01 00 00 E2 17 F9 [14:59:46]Write i2c OK [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: 01 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: 01 07 00 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: 01 07 00 E2 17 00 00 00 00 00 FF 0F 0E [14:59:46]RasterBufferAndPrint [14:59:46]line Счет N : (3)4525 [14:59:46]line ИНН: 02508201610067 [14:59:46]line Контрольно-Кассовый Чек [14:59:46]line ПРОДАЖА [14:59:46]line Товар: 48745000 [14:59:46]line Сигареты Winston Purple Mix [14:59:46]line 1.000 * 135.00 [14:59:46]line = 135.00 [14:59:46]line НДС 12% НСП 1% [14:59:46]line > о реализуемом товаре [14:59:46]line Товар: 4700000310036 [14:59:46]line Вода Жалалабат 27 0,5л [14:59:46]line 1.000 * 35.00 [14:59:46]line = 35.00 [14:59:46]line НДС 12% НСП 1% [14:59:46]line > о реализуемом товаре [14:59:46]line ИТОГО: 170.00 [14:59:46]line НСП 1% : 1.50 [14:59:46]line НДС 12% : 18.06 [14:59:46]line Наличными: 170.00 [14:59:46]line Безнал.: 0.00 [14:59:46]line Место: АЗС № 116 "Партнер Нефть" [14:59:46]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [14:59:46]line СНО: Общий режим [14:59:46]line Чек 48 06.06.2024 14:59 [14:59:46]line Смена: 85 ФФД: 1.0 [14:59:46]line ЗНМ: 0300000233 [14:59:46]line РНМ: 0000000000145775 [14:59:46]line Версия ККМ: v1.0 [14:59:46]line ФМ: 0000000000959360 [14:59:46]line ФД: 4273 [14:59:46]line ФПД: 90064122148616 [14:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T145949&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4273&fm=90064122148616&tin=02508201610067®Number=0000000000145775&sum=17000 [14:59:46]line 0 [14:59:46]OFD Sender: Processing packet 4273 [packets to send 2, broken 1] [14:59:46]ProducePacketName [14:59:46]name=ofd_packets/00004273 [14:59:46]OFD Sender: To server: pG, [14:59:46]CommunicateWithHost lk.salyk.kg:30040 [14:59:46]ConnectInit lk.salyk.kg [14:59:46]written 0, free lines is 4095 [14:59:46]Connected sock=10 [14:59:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 01 00 00 88 56 88 01 B2 C4 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 68 42 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 E5 CE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B1 10 00 00 35 04 06 00 51 E9 B0 01 F7 08 CE 8B 3B EC AB 79 E2 0A [14:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 2A 52 47 00 46 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B1 10 00 00 F4 03 04 00 E5 7A 61 66 B6 04 01 00 00 F0 C2 43 EC 95 06 89 C7 [14:59:46]CommunicateWithHost err = 0 [14:59:46]CheckOFDResponse [14:59:46]1017 (14) - 77093643461234 [14:59:46]1041 (16) - 0000000000959360 [14:59:46]1040 (4) - 4273 [14:59:46]1012 (4) - 06.06.2024 09:01 [14:59:46]1206 (1) - 0 [14:59:46]OFD Sender: Remove packet 4273 [14:59:46]ProducePacketName [14:59:46]name=ofd_packets/00004273 [14:59:46]NVStorageDeleteData [14:59:46]Write to MH i2c: 01 00 00 10 18 28 [14:59:46]Write i2c OK [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: 01 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: 01 07 00 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: 01 07 00 10 18 00 00 00 00 00 60 0C 9B [14:59:46]RasterBufferAndPrint [14:59:46]line [14:59:46]line [14:59:46]line [14:59:46]line [14:59:46]line [14:59:46]written 0, free lines is 3175 [14:59:46]MH_Cut [14:59:46]Write to MH i2c: D1 01 00 17 18 01 01 [14:59:46]Write i2c OK [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: D1 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: D1 01 00 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: D1 01 00 17 18 00 00 [14:59:46]Write to MH i2c: 01 00 00 18 18 30 [14:59:46]Write i2c OK [14:59:46]MH_I2C_Read... [14:59:47]OFD Sender: No OFD packet to send [14:59:47]*** Cut start [14:59:47]*** Partial cut [14:59:47]*** CUTSNS_PIN = 1 [14:59:47]*** CUTSNS_PIN = 0 [14:59:48]*** Brake cut motor [14:59:48]Read from MH i2c: 01 [14:59:48]MH_I2C_Read... [14:59:48]*** Stop cut motor [14:59:48]*** Cut end [14:59:48]Read from MH i2c: 01 07 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: 01 07 00 18 18 00 00 00 00 00 FF 0F 45 [14:59:48]process_action close_receipt done [14:59:48]requested_data is exist [14:59:48]produce_requested_data [14:59:48]requested_item fm.sn is exist - process it [14:59:48]wFMCommunicate request_size=4 [14:59:48]MH_SAM_APDU [14:59:48]CAPDU: 80 11 00 00 [14:59:48]Write to MH i2c: E2 08 00 19 18 80 11 00 00 00 00 00 00 AB [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:48]Read from MH i2c: E2 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 17 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 17 00 19 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 FE [14:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [14:59:48]wFMCommunicate OK [14:59:48]requested_item fd.num is exist - process it [14:59:48]SAM_PROTO_GetFieldsCounters [14:59:48]wFMCommunicate request_size=4 [14:59:48]MH_SAM_APDU [14:59:48]CAPDU: 80 13 00 00 [14:59:48]Write to MH i2c: E2 08 00 1A 18 80 13 00 00 00 00 00 00 AE [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:48]Read from MH i2c: E2 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 62 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 62 00 1A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B1 10 00 00 0E 04 04 00 55 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 79 [14:59:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B1 10 00 00 0E 04 04 00 55 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 [14:59:48]wFMCommunicate OK [14:59:48]SAM_PROTO_GetFieldsCounters done [14:59:48]requested_item shift.num is exist - process it [14:59:48]requested_item shift.opened is exist - process it [14:59:48]req_shift_opened [14:59:48]FM_GetShiftState [14:59:48]SAM_PROTO_GetShiftState [14:59:48]wFMCommunicate request_size=4 [14:59:48]MH_SAM_APDU [14:59:48]CAPDU: 80 13 01 00 [14:59:48]Write to MH i2c: E2 08 00 1B 18 80 13 01 00 00 00 00 00 B0 [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:48]Read from MH i2c: E2 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 0E 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 0E 00 1B 18 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 69 [14:59:48]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [14:59:48]wFMCommunicate OK [14:59:48]SAM_PROTO_GetShiftState done [14:59:48]FM_GetShiftState done [14:59:48]req_shift_opened done [14:59:48]requested_item shift.open_date is exist - process it [14:59:48]req_shift_open_date [14:59:48]req_shift_open_date done [14:59:48]produce_requested_data done [14:59:48]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4273,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [14:59:48]process_action_free close_receipt [14:59:48]json_value_free [14:59:48]json_value_free done [14:59:48]process_json_proto returns [14:59:48]Send response to host [14:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4273,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [14:59:48]free response buf [14:59:48]execute_script done [14:59:48]execute_script returns [14:59:48]free content buf [14:59:48]Sock 8.Close socket [14:59:48]Sock 8.Thread stoped [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:05]accept exits with 9 [15:00:05]New connection [15:00:05]New thread 3066629476 created [15:00:05]Thread 3066772836 joined [15:00:05]Waiting for new connection... [15:00:05] Sock 9.Parse request [15:00:05]Sock 9.Check first char [15:00:05]Sock 9.First char is OK [15:00:05]request: POST /json_proto HTTP/1.0 [15:00:05]Method: POST [15:00:05]URL: /json_proto [15:00:05]Method is POST - this is cgi request [15:00:05]url: /json_proto [15:00:05]query_string will be loaded in cgi processing [15:00:05]execute_cgi json_proto POST (null) [15:00:05]execute_cgi path=json_proto method=POST [15:00:05]POST find Content-Length [15:00:05]Host: 172.17.56.68:8080 [15:00:05]Content-Length: 645 [15:00:05]Content-Type: application/json [15:00:05] [15:00:05]POST finish read [15:00:05]Found Content-Length = 645 [15:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4526", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 2.000, "sum" : 530.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 530.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:05]execute_script... [15:00: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 : (3)4526", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 2.000, "sum" : 530.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 530.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:05]POST & json_proto [15:00:05]process_json_proto [15:00:05]json parsed OK: [15:00:05]protocol is kg_v1.0 [15:00:05]action value=close_receipt [15:00:05]process_action close_receipt [15:00:05]cmd_close_receipt [15:00:05]MH_GetDate [15:00:05]Write to MH i2c: F0 00 00 1C 18 23 [15:00:05]Write i2c OK [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: F0 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: F0 09 00 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: F0 09 00 1C 18 00 FA CE 61 66 3A 8F 60 66 4A [15:00:05]GetLastDocTimeStamp 1717685989 [15:00:05]current date 1717686010 [15:00:05]FM_GetShiftState [15:00:05]SAM_PROTO_GetShiftState [15:00:05]wFMCommunicate request_size=4 [15:00:05]MH_SAM_APDU [15:00:05]CAPDU: 80 13 01 00 [15:00:05]Write to MH i2c: E2 08 00 1D 18 80 13 01 00 00 00 00 00 B2 [15:00:05]Write i2c OK [15:00:05]MH_I2C_Read... [15:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:05]Read from MH i2c: E2 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: E2 0E 00 [15:00:05]MH_I2C_Read... [15:00:05]Read from MH i2c: E2 0E 00 1D 18 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 6B [15:00:05]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [15:00:05]wFMCommunicate OK [15:00:05]SAM_PROTO_GetShiftState done [15:00:05]FM_GetShiftState done [15:00:05]opened in 1717632745 [15:00:05]opened+sec_in_day 1717719145 [15:00:05]quantity*price = 53000 [15:00:05]sum+1 = 53001 [15:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 530.00 НСП 1% : 4.69 НДС 12% : 56.28 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 49 06.06.2024 15:00 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4274 ФПД: 276215068540120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T150010&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4274&fm=276215068540120&tin=02508201610067®Number=0000000000145775&sum=53000 0 [15:00:06]StoreToDocumentArchive [15:00:06]shift 85 fd 4274 [15:00:06]save to /storage/0085/doc_00004274 [15:00:06]save last doc name /storage/0085/doc_00004274 to /storage/kkm_last_doc_name [15:00:06]save OK [15:00:06]Clear old archive folders... [15:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=279 [15:00:06]tlvbuf is 019F4480 [15:00:06]SAM_PROTO_ClearQueue [15:00:06]wFMCommunicate request_size=4 [15:00:06]MH_SAM_APDU [15:00:06]CAPDU: 80 09 00 00 [15:00:06]Write to MH i2c: E2 08 00 2A 18 80 09 00 00 00 00 00 00 B4 [15:00:06]Write i2c OK [15:00:06]MH_I2C_Read... [15:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:06]Read from MH i2c: E2 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 03 00 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 03 00 2A 18 00 90 00 B6 [15:00:06]RAPDU: 90 00 [15:00:06]wFMCommunicate OK [15:00:06]SAM_PROTO_ClearQueue done [15:00:06]KKMCreateOFDPacket [15:00:06]OFDProtocolAddRootSTLVToBuf [15:00:06]FM_MakeSignedData [15:00:06]FM_MakeSignedData [15:00:06]SAM_PROTO_SignData [15:00:06]wFMCommunicate request_size=4 [15:00:06]MH_SAM_APDU [15:00:06]CAPDU: 80 0D 01 02 [15:00:06]Write to MH i2c: E2 08 00 2B 18 80 0D 01 02 00 00 00 00 BC [15:00:06]Write i2c OK [15:00:06]MH_I2C_Read... [15:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:06]Read from MH i2c: E2 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 03 00 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [15:00:06]RAPDU: 90 00 [15:00:06]wFMCommunicate OK [15:00:06]wFMCommunicate request_size=255 [15:00:06]MH_SAM_APDU [15:00:06]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FA CE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 [15:00:06]Write to MH i2c: E2 02 01 2C 18 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FA CE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 00 00 E9 [15:00:06]Write i2c OK [15:00:06]MH_I2C_Read... [15:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:06]Read from MH i2c: E2 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 03 00 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 03 00 2C 18 00 90 00 B8 [15:00:06]RAPDU: 90 00 [15:00:06]wFMCommunicate OK [15:00:06]wFMCommunicate request_size=38 [15:00:06]MH_SAM_APDU [15:00:06]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B2 10 00 00 35 04 06 00 FB 37 55 0A BC D8 [15:00:06]Write to MH i2c: E2 29 00 2D 18 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B2 10 00 00 35 04 06 00 FB 37 55 0A BC D8 00 00 2F [15:00:06]Write i2c OK [15:00:06]MH_I2C_Read... [15:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:06]Read from MH i2c: E2 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 03 00 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 03 00 2D 18 00 90 00 B9 [15:00:06]RAPDU: 90 00 [15:00:06]wFMCommunicate OK [15:00:06]wFMCommunicate request_size=4 [15:00:06]MH_SAM_APDU [15:00:06]CAPDU: 80 0D 03 02 [15:00:06]Write to MH i2c: E2 08 00 2E 18 80 0D 03 02 00 00 00 00 C1 [15:00:06]Write i2c OK [15:00:06]MH_I2C_Read... [15:00:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:06]Read from MH i2c: E2 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 0B 00 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 0B 00 2E 18 00 4C 7C 96 52 6E D8 84 08 90 00 44 [15:00:06]RAPDU: 4C 7C 96 52 6E D8 84 08 90 00 [15:00:06]wFMCommunicate OK [15:00:06]SAM_PROTO_SignData done [15:00:06]FM_MakeSignedData done [15:00:06]CreateOFDProtocolMessage [15:00:06]wFMCommunicate request_size=4 [15:00:06]MH_SAM_APDU [15:00:06]CAPDU: 80 11 00 00 [15:00:06]Write to MH i2c: E2 08 00 2F 18 80 11 00 00 00 00 00 00 C1 [15:00:06]Write i2c OK [15:00:06]MH_I2C_Read... [15:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:06]Read from MH i2c: E2 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 17 00 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: E2 17 00 2F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 14 [15:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [15:00:06]wFMCommunicate OK [15:00:06]CreateOFDProtocolMessage done [15:00:06]OFDSenderStorePacket 4274 [15:00:06]StoreOFDPacket docnum=4274 [15:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2B 01 00 00 7B 27 23 01 1F FC 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FA CE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B2 10 00 00 35 04 06 00 FB 37 55 0A BC D8 4C 7C 96 52 6E D8 84 08 [15:00:06]CheckFolder [15:00:06]dirname=/storage/ofd_packets [15:00:06]CheckFolder done [15:00:06]ProducePacketName [15:00:06]name=ofd_packets/00004274 [15:00:06]NVStorageSaveData ofd_packets/00004274 [15:00:06]File name is /storage/ofd_packets/00004274 [15:00:06]Write 329 bytes [15:00:06]NVStorageSaveData done [15:00:06]OFDSenderStorePacket done [15:00:06]KKMCreateOFDPacket done [15:00:06]NVStorageSaveData kkm_last_timestamp [15:00:06]File name is /storage/kkm_last_timestamp [15:00:06]Write 4 bytes [15:00:06]NVStorageSaveData done [15:00:06]ExternCall_PrintAddStr [15:00:06]wPrintStart [15:00:06]Write to MH i2c: 01 00 00 30 18 48 [15:00:06]Write i2c OK [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: 01 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: 01 07 00 [15:00:06]MH_I2C_Read... [15:00:06]Read from MH i2c: 01 07 00 30 18 00 00 00 00 00 FF 0F 5D [15:00:06]RasterBufferAndPrint [15:00:06]line Счет N : (3)4526 [15:00:06]line ИНН: 02508201610067 [15:00:06]line Контрольно-Кассовый Чек [15:00:06]line ПРОДАЖА [15:00:06]line Товар: 90448300 [15:00:06]line Энерг напиток Red Bull 0,355л [15:00:06]line 2.000 * 265.00 [15:00:06]line = 530.00 [15:00:06]line НДС 12% НСП 1% [15:00:06]line > о реализуемом товаре [15:00:06]line ИТОГО: 530.00 [15:00:06]line НСП 1% : 4.69 [15:00:06]line НДС 12% : 56.28 [15:00:06]line Наличными: 530.00 [15:00:06]line Безнал.: 0.00 [15:00:06]line Место: АЗС № 116 "Партнер Нефть" [15:00:06]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [15:00:06]line СНО: Общий режим [15:00:06]line Чек 49 06.06.2024 15:00 [15:00:06]line Смена: 85 ФФД: 1.0 [15:00:06]line ЗНМ: 0300000233 [15:00:06]line РНМ: 0000000000145775 [15:00:06]line Версия ККМ: v1.0 [15:00:06]line ФМ: 0000000000959360 [15:00:06]line ФД: 4274 [15:00:06]line ФПД: 276215068540120 [15:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T150010&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4274&fm=276215068540120&tin=02508201610067®Number=0000000000145775&sum=53000 [15:00:07]line 0 [15:00:07]OFD Sender: Processing packet 4274 [packets to send 2, broken 1] [15:00:07]ProducePacketName [15:00:07]name=ofd_packets/00004274 [15:00:07]OFD Sender: To server: pG, [15:00:07]CommunicateWithHost lk.salyk.kg:30040 [15:00:07]ConnectInit lk.salyk.kg [15:00:07]written 0, free lines is 4095 [15:00:07]Connected sock=10 [15:00:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 2B 01 00 00 7B 27 23 01 1F FC 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 08 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 FA CE 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B2 10 00 00 35 04 06 00 FB 37 55 0A BC D8 4C 7C 96 52 6E D8 84 08 [15:00:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 54 3D 47 00 2B 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B2 10 00 00 F4 03 04 00 F9 7A 61 66 B6 04 01 00 00 A9 4A A8 FC 04 B0 BA C4 [15:00:07]CommunicateWithHost err = 0 [15:00:07]CheckOFDResponse [15:00:07]1017 (14) - 77093643461234 [15:00:07]1041 (16) - 0000000000959360 [15:00:07]1040 (4) - 4274 [15:00:07]1012 (4) - 06.06.2024 09:01 [15:00:07]1206 (1) - 0 [15:00:07]OFD Sender: Remove packet 4274 [15:00:07]ProducePacketName [15:00:07]name=ofd_packets/00004274 [15:00:07]NVStorageDeleteData [15:00:07]Write to MH i2c: 01 00 00 58 18 70 [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 07 00 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 07 00 58 18 00 00 00 00 00 D8 0C 5B [15:00:07]RasterBufferAndPrint [15:00:07]line [15:00:07]line [15:00:07]line [15:00:07]line [15:00:07]line [15:00:07]written 0, free lines is 3296 [15:00:07]MH_Cut [15:00:07]Write to MH i2c: D1 01 00 5F 18 01 49 [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: D1 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: D1 01 00 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: D1 01 00 5F 18 00 48 [15:00:07]Write to MH i2c: 01 00 00 60 18 78 [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:07]OFD Sender: No OFD packet to send [15:00:08]*** Cut start [15:00:08]*** Partial cut [15:00:08]*** CUTSNS_PIN = 1 [15:00:08]*** CUTSNS_PIN = 0 [15:00:08]*** Brake cut motor [15:00:09]Read from MH i2c: 01 [15:00:09]MH_I2C_Read... [15:00:09]*** Stop cut motor [15:00:09]*** Cut end [15:00:09]Read from MH i2c: 01 07 00 [15:00:09]MH_I2C_Read... [15:00:09]Read from MH i2c: 01 07 00 60 18 00 00 00 00 00 FF 0F 8D [15:00:09]process_action close_receipt done [15:00:09]requested_data is exist [15:00:09]produce_requested_data [15:00:09]requested_item fm.sn is exist - process it [15:00:09]wFMCommunicate request_size=4 [15:00:09]MH_SAM_APDU [15:00:09]CAPDU: 80 11 00 00 [15:00:09]Write to MH i2c: E2 08 00 61 18 80 11 00 00 00 00 00 00 F3 [15:00:09]Write i2c OK [15:00:09]MH_I2C_Read... [15:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:09]Read from MH i2c: E2 [15:00:09]MH_I2C_Read... [15:00:09]Read from MH i2c: E2 17 00 [15:00:09]MH_I2C_Read... [15:00:09]Read from MH i2c: E2 17 00 61 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 46 [15:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [15:00:09]wFMCommunicate OK [15:00:09]requested_item fd.num is exist - process it [15:00:09]SAM_PROTO_GetFieldsCounters [15:00:09]wFMCommunicate request_size=4 [15:00:09]MH_SAM_APDU [15:00:09]CAPDU: 80 13 00 00 [15:00:09]Write to MH i2c: E2 08 00 62 18 80 13 00 00 00 00 00 00 F6 [15:00:09]Write i2c OK [15:00:09]MH_I2C_Read... [15:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:09]Read from MH i2c: E2 [15:00:09]MH_I2C_Read... [15:00:09]Read from MH i2c: E2 62 00 [15:00:09]MH_I2C_Read... [15:00:09]Read from MH i2c: E2 62 00 62 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B2 10 00 00 0E 04 04 00 55 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 C5 [15:00:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B2 10 00 00 0E 04 04 00 55 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 [15:00:09]wFMCommunicate OK [15:00:09]SAM_PROTO_GetFieldsCounters done [15:00:09]requested_item shift.num is exist - process it [15:00:09]requested_item shift.opened is exist - process it [15:00:09]req_shift_opened [15:00:09]FM_GetShiftState [15:00:09]SAM_PROTO_GetShiftState [15:00:09]wFMCommunicate request_size=4 [15:00:09]MH_SAM_APDU [15:00:09]CAPDU: 80 13 01 00 [15:00:09]Write to MH i2c: E2 08 00 63 18 80 13 01 00 00 00 00 00 F8 [15:00:09]Write i2c OK [15:00:09]MH_I2C_Read... [15:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:09]Read from MH i2c: E2 [15:00:09]MH_I2C_Read... [15:00:09]Read from MH i2c: E2 0E 00 [15:00:09]MH_I2C_Read... [15:00:09]Read from MH i2c: E2 0E 00 63 18 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 B1 [15:00:09]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [15:00:09]wFMCommunicate OK [15:00:09]SAM_PROTO_GetShiftState done [15:00:09]FM_GetShiftState done [15:00:09]req_shift_opened done [15:00:09]requested_item shift.open_date is exist - process it [15:00:09]req_shift_open_date [15:00:09]req_shift_open_date done [15:00:09]produce_requested_data done [15:00:09]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4274,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [15:00:09]process_action_free close_receipt [15:00:09]json_value_free [15:00:09]json_value_free done [15:00:09]process_json_proto returns [15:00:09]Send response to host [15:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4274,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [15:00:09]free response buf [15:00:09]execute_script done [15:00:09]execute_script returns [15:00:09]free content buf [15:00:09]Sock 9.Close socket [15:00:09]Sock 9.Thread stoped [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23: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:58]accept exits with 8 [15:23:58]New connection [15:23:58]New thread 3066772836 created [15:23:58]Thread 3066629476 joined [15:23:58]Waiting for new connection... [15:23:58] Sock 8.Parse request [15:23:58]Sock 8.Check first char [15:23:58]Sock 8.First char is OK [15:23:58]request: POST /json_proto HTTP/1.0 [15:23:58]Method: POST [15:23:58]URL: /json_proto [15:23:58]Method is POST - this is cgi request [15:23:58]url: /json_proto [15:23:58]query_string will be loaded in cgi processing [15:23:58]execute_cgi json_proto POST (null) [15:23:58]execute_cgi path=json_proto method=POST [15:23:58]POST find Content-Length [15:23:58]Host: 172.17.56.68:8080 [15:23:58]Content-Length: 619 [15:23:58]Content-Type: application/json [15:23:58] [15:23:58]POST finish read [15:23:58]Found Content-Length = 619 [15:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4527", "tax_sys" : 0, "items" : [ { "code": "4602441018161", "name": "\u0427\u0438\u043F\u0441\u044B FRY`S \u041A\u0440\u0430\u0431 1/70", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:58]execute_script... [15:23: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 : (3)4527", "tax_sys" : 0, "items" : [ { "code": "4602441018161", "name": "\u0427\u0438\u043F\u0441\u044B FRY`S \u041A\u0440\u0430\u0431 1/70", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:58]POST & json_proto [15:23:58]process_json_proto [15:23:58]json parsed OK: [15:23:58]protocol is kg_v1.0 [15:23:58]action value=close_receipt [15:23:58]process_action close_receipt [15:23:58]cmd_close_receipt [15:23:58]MH_GetDate [15:23:58]Write to MH i2c: F0 00 00 64 18 6B [15:23:58]Write i2c OK [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: F0 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: F0 09 00 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: F0 09 00 64 18 00 93 D4 61 66 3A 8F 60 66 31 [15:23:58]GetLastDocTimeStamp 1717686010 [15:23:58]current date 1717687443 [15:23:58]FM_GetShiftState [15:23:58]SAM_PROTO_GetShiftState [15:23:58]wFMCommunicate request_size=4 [15:23:58]MH_SAM_APDU [15:23:58]CAPDU: 80 13 01 00 [15:23:58]Write to MH i2c: E2 08 00 65 18 80 13 01 00 00 00 00 00 FA [15:23:58]Write i2c OK [15:23:58]MH_I2C_Read... [15:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:58]Read from MH i2c: E2 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: E2 0E 00 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: E2 0E 00 65 18 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 B3 [15:23:58]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [15:23:58]wFMCommunicate OK [15:23:58]SAM_PROTO_GetShiftState done [15:23:58]FM_GetShiftState done [15:23:58]opened in 1717632745 [15:23:58]opened+sec_in_day 1717719145 [15:23:58]quantity*price = 9000 [15:23:58]sum+1 = 9001 [15:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 50 06.06.2024 15:24 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4275 ФПД: 263197653318686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T152403&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4275&fm=263197653318686&tin=02508201610067®Number=0000000000145775&sum=9000 0 [15:23:59]StoreToDocumentArchive [15:23:59]shift 85 fd 4275 [15:23:59]save to /storage/0085/doc_00004275 [15:23:59]save last doc name /storage/0085/doc_00004275 to /storage/kkm_last_doc_name [15:23:59]save OK [15:23:59]Clear old archive folders... [15:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=272 [15:23:59]tlvbuf is 019F4D70 [15:23:59]SAM_PROTO_ClearQueue [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 09 00 00 [15:23:59]Write to MH i2c: E2 08 00 72 18 80 09 00 00 00 00 00 00 FC [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 72 18 00 90 00 FE [15:23:59]RAPDU: 90 00 [15:23:59]wFMCommunicate OK [15:23:59]SAM_PROTO_ClearQueue done [15:23:59]KKMCreateOFDPacket [15:23:59]OFDProtocolAddRootSTLVToBuf [15:23:59]FM_MakeSignedData [15:23:59]FM_MakeSignedData [15:23:59]SAM_PROTO_SignData [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 0D 01 02 [15:23:59]Write to MH i2c: E2 08 00 73 18 80 0D 01 02 00 00 00 00 04 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 73 18 00 90 00 FF [15:23:59]RAPDU: 90 00 [15:23:59]wFMCommunicate OK [15:23:59]wFMCommunicate request_size=255 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 36 31 06 04 1E 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 9A D1 80 D0 B0 D0 B1 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 32 00 00 00 F4 03 04 00 93 D4 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 [15:23:59]Write to MH i2c: E2 02 01 74 18 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 36 31 06 04 1E 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 9A D1 80 D0 B0 D0 B1 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 32 00 00 00 F4 03 04 00 93 D4 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 21 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 74 18 00 90 00 00 [15:23:59]RAPDU: 90 00 [15:23:59]wFMCommunicate OK [15:23:59]wFMCommunicate request_size=31 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 33 36 30 10 04 04 00 B3 10 00 00 35 04 06 00 EF 60 7A A1 BC 1E [15:23:59]Write to MH i2c: E2 22 00 75 18 80 0D 02 02 1A 00 30 30 39 35 39 33 36 30 10 04 04 00 B3 10 00 00 35 04 06 00 EF 60 7A A1 BC 1E 00 00 39 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 75 18 00 90 00 01 [15:23:59]RAPDU: 90 00 [15:23:59]wFMCommunicate OK [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 0D 03 02 [15:23:59]Write to MH i2c: E2 08 00 76 18 80 0D 03 02 00 00 00 00 09 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 0B 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 0B 00 76 18 00 95 39 F0 C5 7E 5A 2A 80 90 00 0F [15:23:59]RAPDU: 95 39 F0 C5 7E 5A 2A 80 90 00 [15:23:59]wFMCommunicate OK [15:23:59]SAM_PROTO_SignData done [15:23:59]FM_MakeSignedData done [15:23:59]CreateOFDProtocolMessage [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 11 00 00 [15:23:59]Write to MH i2c: E2 08 00 77 18 80 11 00 00 00 00 00 00 09 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 17 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 17 00 77 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 5C [15:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [15:23:59]wFMCommunicate OK [15:23:59]CreateOFDProtocolMessage done [15:23:59]OFDSenderStorePacket 4275 [15:23:59]StoreOFDPacket docnum=4275 [15:23:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 24 01 00 00 B3 52 1C 01 67 BC 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 36 31 06 04 1E 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 9A D1 80 D0 B0 D0 B1 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 32 00 00 00 F4 03 04 00 93 D4 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B3 10 00 00 35 04 06 00 EF 60 7A A1 BC 1E 95 39 F0 C5 7E 5A 2A 80 [15:23:59]CheckFolder [15:23:59]dirname=/storage/ofd_packets [15:23:59]CheckFolder done [15:23:59]ProducePacketName [15:23:59]name=ofd_packets/00004275 [15:23:59]NVStorageSaveData ofd_packets/00004275 [15:23:59]File name is /storage/ofd_packets/00004275 [15:23:59]Write 322 bytes [15:23:59]NVStorageSaveData done [15:23:59]OFDSenderStorePacket done [15:23:59]KKMCreateOFDPacket done [15:23:59]NVStorageSaveData kkm_last_timestamp [15:23:59]File name is /storage/kkm_last_timestamp [15:23:59]Write 4 bytes [15:23:59]NVStorageSaveData done [15:23:59]ExternCall_PrintAddStr [15:23:59]wPrintStart [15:23:59]Write to MH i2c: 01 00 00 78 18 90 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: 01 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: 01 07 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: 01 07 00 78 18 00 00 00 00 00 FF 0F A5 [15:23:59]RasterBufferAndPrint [15:23:59]line Счет N : (3)4527 [15:23:59]line ИНН: 02508201610067 [15:23:59]line Контрольно-Кассовый Чек [15:23:59]line ПРОДАЖА [15:23:59]line Товар: 4602441018161 [15:23:59]line Чипсы FRY`S Краб 1/70 [15:23:59]line 1.000 * 90.00 [15:23:59]line = 90.00 [15:23:59]line НДС 12% НСП 1% [15:23:59]line > о реализуемом товаре [15:23:59]line ИТОГО: 90.00 [15:23:59]line НСП 1% : 0.80 [15:23:59]line НДС 12% : 9.56 [15:23:59]line Наличными: 90.00 [15:23:59]line Безнал.: 0.00 [15:23:59]line Место: АЗС № 116 "Партнер Нефть" [15:23:59]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [15:23:59]line СНО: Общий режим [15:23:59]line Чек 50 06.06.2024 15:24 [15:23:59]line Смена: 85 ФФД: 1.0 [15:23:59]line ЗНМ: 0300000233 [15:24:00]line РНМ: 0000000000145775 [15:24:00]line Версия ККМ: v1.0 [15:24:00]line ФМ: 0000000000959360 [15:24:00]line ФД: 4275 [15:24:00]line ФПД: 263197653318686 [15:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T152403&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4275&fm=263197653318686&tin=02508201610067®Number=0000000000145775&sum=9000 [15:24:00]line 0 [15:24:00]OFD Sender: Processing packet 4275 [packets to send 2, broken 1] [15:24:00]ProducePacketName [15:24:00]name=ofd_packets/00004275 [15:24:00]OFD Sender: To server: pG, [15:24:00]CommunicateWithHost lk.salyk.kg:30040 [15:24:00]ConnectInit lk.salyk.kg [15:24:00]written 0, free lines is 4095 [15:24:00]Connected sock=10 [15:24:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 24 01 00 00 B3 52 1C 01 67 BC 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 36 31 06 04 1E 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 9A D1 80 D0 B0 D0 B1 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 32 00 00 00 F4 03 04 00 93 D4 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B3 10 00 00 35 04 06 00 EF 60 7A A1 BC 1E 95 39 F0 C5 7E 5A 2A 80 [15:24:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 46 DF 47 00 21 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B3 10 00 00 F4 03 04 00 92 80 61 66 B6 04 01 00 00 8D E6 C9 34 3B 2E C6 E4 [15:24:00]CommunicateWithHost err = 0 [15:24:00]CheckOFDResponse [15:24:00]1017 (14) - 77093643461234 [15:24:00]1041 (16) - 0000000000959360 [15:24:00]1040 (4) - 4275 [15:24:00]1012 (4) - 06.06.2024 09:25 [15:24:00]1206 (1) - 0 [15:24:00]OFD Sender: Remove packet 4275 [15:24:00]ProducePacketName [15:24:00]name=ofd_packets/00004275 [15:24:00]NVStorageDeleteData [15:24:00]Write to MH i2c: 01 00 00 A0 18 B8 [15:24:00]Write i2c OK [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: 01 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: 01 07 00 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: 01 07 00 A0 18 00 00 00 00 00 C9 0C 94 [15:24:00]RasterBufferAndPrint [15:24:00]line [15:24:00]line [15:24:00]line [15:24:00]line [15:24:00]line [15:24:00]written 0, free lines is 3279 [15:24:00]MH_Cut [15:24:00]Write to MH i2c: D1 01 00 A7 18 01 91 [15:24:00]Write i2c OK [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: D1 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: D1 01 00 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: D1 01 00 A7 18 00 90 [15:24:00]Write to MH i2c: 01 00 00 A8 18 C0 [15:24:00]Write i2c OK [15:24:00]MH_I2C_Read... [15:24:00]OFD Sender: No OFD packet to send [15:24:01]*** Cut start [15:24:01]*** Partial cut [15:24:01]*** CUTSNS_PIN = 1 [15:24:01]*** CUTSNS_PIN = 0 [15:24:01]*** Brake cut motor [15:24:02]Read from MH i2c: 01 [15:24:02]MH_I2C_Read... [15:24:02]*** Stop cut motor [15:24:02]*** Cut end [15:24:02]Read from MH i2c: 01 07 00 [15:24:02]MH_I2C_Read... [15:24:02]Read from MH i2c: 01 07 00 A8 18 00 00 00 00 00 FF 0F D5 [15:24:02]process_action close_receipt done [15:24:02]requested_data is exist [15:24:02]produce_requested_data [15:24:02]requested_item fm.sn is exist - process it [15:24:02]wFMCommunicate request_size=4 [15:24:02]MH_SAM_APDU [15:24:02]CAPDU: 80 11 00 00 [15:24:02]Write to MH i2c: E2 08 00 A9 18 80 11 00 00 00 00 00 00 3B [15:24:02]Write i2c OK [15:24:02]MH_I2C_Read... [15:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:02]Read from MH i2c: E2 [15:24:02]MH_I2C_Read... [15:24:02]Read from MH i2c: E2 17 00 [15:24:02]MH_I2C_Read... [15:24:02]Read from MH i2c: E2 17 00 A9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 8E [15:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [15:24:02]wFMCommunicate OK [15:24:02]requested_item fd.num is exist - process it [15:24:02]SAM_PROTO_GetFieldsCounters [15:24:02]wFMCommunicate request_size=4 [15:24:02]MH_SAM_APDU [15:24:02]CAPDU: 80 13 00 00 [15:24:02]Write to MH i2c: E2 08 00 AA 18 80 13 00 00 00 00 00 00 3E [15:24:02]Write i2c OK [15:24:02]MH_I2C_Read... [15:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:02]Read from MH i2c: E2 [15:24:02]MH_I2C_Read... [15:24:02]Read from MH i2c: E2 62 00 [15:24:02]MH_I2C_Read... [15:24:02]Read from MH i2c: E2 62 00 AA 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B3 10 00 00 0E 04 04 00 55 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 [15:24:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B3 10 00 00 0E 04 04 00 55 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 [15:24:02]wFMCommunicate OK [15:24:02]SAM_PROTO_GetFieldsCounters done [15:24:02]requested_item shift.num is exist - process it [15:24:02]requested_item shift.opened is exist - process it [15:24:02]req_shift_opened [15:24:02]FM_GetShiftState [15:24:02]SAM_PROTO_GetShiftState [15:24:02]wFMCommunicate request_size=4 [15:24:02]MH_SAM_APDU [15:24:02]CAPDU: 80 13 01 00 [15:24:02]Write to MH i2c: E2 08 00 AB 18 80 13 01 00 00 00 00 00 40 [15:24:02]Write i2c OK [15:24:02]MH_I2C_Read... [15:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:02]Read from MH i2c: E2 [15:24:02]MH_I2C_Read... [15:24:02]Read from MH i2c: E2 0E 00 [15:24:02]MH_I2C_Read... [15:24:02]Read from MH i2c: E2 0E 00 AB 18 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 F9 [15:24:02]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [15:24:02]wFMCommunicate OK [15:24:02]SAM_PROTO_GetShiftState done [15:24:02]FM_GetShiftState done [15:24:02]req_shift_opened done [15:24:02]requested_item shift.open_date is exist - process it [15:24:02]req_shift_open_date [15:24:02]req_shift_open_date done [15:24:02]produce_requested_data done [15:24:02]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4275,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [15:24:02]process_action_free close_receipt [15:24:02]json_value_free [15:24:02]json_value_free done [15:24:02]process_json_proto returns [15:24:02]Send response to host [15:24:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4275,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [15:24:02]free response buf [15:24:02]execute_script done [15:24:02]execute_script returns [15:24:02]free content buf [15:24:02]Sock 8.Close socket [15:24:02]Sock 8.Thread stoped [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]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:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:22]int [15:53:22]Write to MH i2c: 01 00 00 AC 18 C4 [15:53:22]*** FLAG_PRN_PAP1 set [15:53:22]Write i2c OK [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 07 00 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 07 00 AC 18 00 01 00 00 00 FF 0F DA [15:53:22]state=0 [15:53:22]No paper [15:53:22]int [15:53:22]Write to MH i2c: 01 00 00 AD 18 C5 [15:53:22]*** FLAG_PRN_PAP2 set [15:53:22]Write i2c OK [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 07 00 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 07 00 AD 18 00 03 00 00 00 FF 0F DD [15:53:22]state=0 [15:53:22]No paper [15:53:22]Cover opened [15:53:27]OFD Sender: No OFD packet to send [15:53:27]Write to MH i2c: 01 00 00 AE 18 C6 [15:53:27]Write i2c OK [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 07 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: 01 07 00 AE 18 00 03 00 00 00 FF 0F DE [15:53:27]state=3 [15:53:27]No paper [15:53:27]Cover opened [15:53:32]OFD Sender: No OFD packet to send [15:53:32]int [15:53:32]Write to MH i2c: 01 00 00 AF 18 C7 [15:53:32]*** FLAG_PRN_PAP2 reset [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 07 00 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 07 00 AF 18 00 01 00 00 00 FF 0F DD [15:53:32]state=3 [15:53:32]No paper [15:53:32]Cover closed [15:53:32]int [15:53:32]Write to MH i2c: 01 00 00 B0 18 C8 [15:53:32]*** FLAG_PRN_PAP1 reset [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 07 00 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 07 00 B0 18 00 00 00 00 00 FF 0F DD [15:53:32]state=0 [15:53:33]int [15:53:33]Write to MH i2c: 01 00 00 B1 18 C9 [15:53:33]*** FLAG_PRN_KEY set [15:53:33]Write i2c OK [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 07 00 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 07 00 B1 18 00 08 00 00 00 FF 0F E6 [15:53:33]state=0 [15:53:33]Key pressed [15:53:33]Feed [15:53:33]Write to MH i2c: D8 00 00 B2 18 A1 [15:53:33]Write i2c OK [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: D8 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: D8 01 00 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: D8 01 00 B2 18 00 A2 [15:53:33]int [15:53:33]Write to MH i2c: 01 00 00 B3 18 CB [15:53:33]Write i2c OK [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 07 00 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 07 00 B3 18 00 48 00 00 00 3C 00 56 [15:53:33]state=2 [15:53:33]Key pressed [15:53:33]int [15:53:33]Write to MH i2c: 01 00 00 B4 18 CC [15:53:33]*** FLAG_PRN_KEY reset [15:53:33]Write i2c OK [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 07 00 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 07 00 B4 18 00 00 00 00 00 F6 0F D8 [15:53:33]state=2 [15:53:33]Stop feed [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:10]accept exits with 9 [15:56:10]New connection [15:56:10]New thread 3066629476 created [15:56:10]Thread 3066772836 joined [15:56:10]Waiting for new connection... [15:56:10] Sock 9.Parse request [15:56:10]Sock 9.Check first char [15:56:10]Sock 9.First char is OK [15:56:10]request: POST /json_proto HTTP/1.0 [15:56:10]Method: POST [15:56:10]URL: /json_proto [15:56:10]Method is POST - this is cgi request [15:56:10]url: /json_proto [15:56:10]query_string will be loaded in cgi processing [15:56:10]execute_cgi json_proto POST (null) [15:56:10]execute_cgi path=json_proto method=POST [15:56:10]POST find Content-Length [15:56:10]Host: 172.17.56.68:8080 [15:56:10]Content-Length: 966 [15:56:10]Content-Type: application/json [15:56:10] [15:56:10]POST finish read [15:56:10]Found Content-Length = 966 [15:56:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4528", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:10]execute_script... [15:56: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 : (3)4528", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:10]POST & json_proto [15:56:10]process_json_proto [15:56:10]json parsed OK: [15:56:10]protocol is kg_v1.0 [15:56:10]action value=close_receipt [15:56:10]process_action close_receipt [15:56:10]cmd_close_receipt [15:56:10]MH_GetDate [15:56:10]Write to MH i2c: F0 00 00 B5 18 BC [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: F0 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: F0 09 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: F0 09 00 B5 18 00 1F DC 61 66 3A 8F 60 66 16 [15:56:10]GetLastDocTimeStamp 1717687443 [15:56:10]current date 1717689375 [15:56:10]FM_GetShiftState [15:56:10]SAM_PROTO_GetShiftState [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 13 01 00 [15:56:10]Write to MH i2c: E2 08 00 B6 18 80 13 01 00 00 00 00 00 4B [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 0E 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 0E 00 B6 18 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 04 [15:56:10]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [15:56:10]wFMCommunicate OK [15:56:10]SAM_PROTO_GetShiftState done [15:56:10]FM_GetShiftState done [15:56:10]opened in 1717632745 [15:56:10]opened+sec_in_day 1717719145 [15:56:10]quantity*price = 8500 [15:56:10]sum+1 = 8501 [15:56:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.12 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 51 06.06.2024 15:56 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4276 ФПД: 165060750279589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T155615&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4276&fm=165060750279589&tin=02508201610067®Number=0000000000145775&sum=18000 0 [15:56:11]StoreToDocumentArchive [15:56:11]shift 85 fd 4276 [15:56:11]save to /storage/0085/doc_00004276 [15:56:11]save last doc name /storage/0085/doc_00004276 to /storage/kkm_last_doc_name [15:56:11]save OK [15:56:11]Clear old archive folders... [15:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=422 [15:56:11]tlvbuf is 01990560 [15:56:11]SAM_PROTO_ClearQueue [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 09 00 00 [15:56:11]Write to MH i2c: E2 08 00 C3 18 80 09 00 00 00 00 00 00 4D [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 03 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 03 00 C3 18 00 90 00 4F [15:56:11]RAPDU: 90 00 [15:56:11]wFMCommunicate OK [15:56:11]SAM_PROTO_ClearQueue done [15:56:11]KKMCreateOFDPacket [15:56:11]OFDProtocolAddRootSTLVToBuf [15:56:11]FM_MakeSignedData [15:56:11]FM_MakeSignedData [15:56:11]SAM_PROTO_SignData [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 0D 01 02 [15:56:11]Write to MH i2c: E2 08 00 C4 18 80 0D 01 02 00 00 00 00 55 [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 03 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 03 00 C4 18 00 90 00 50 [15:56:11]RAPDU: 90 00 [15:56:11]wFMCommunicate OK [15:56:11]wFMCommunicate request_size=255 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 [15:56:11]Write to MH i2c: E2 02 01 C5 18 80 0D 02 02 FA 00 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 00 00 99 [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 03 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 03 00 C5 18 00 90 00 51 [15:56:11]RAPDU: 90 00 [15:56:11]wFMCommunicate OK [15:56:11]wFMCommunicate request_size=181 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1F DC 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B4 10 00 00 35 04 06 00 96 1F 33 63 03 A5 [15:56:11]Write to MH i2c: E2 B8 00 C6 18 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1F DC 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B4 10 00 00 35 04 06 00 96 1F 33 63 03 A5 00 00 07 [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 03 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 03 00 C6 18 00 90 00 52 [15:56:11]RAPDU: 90 00 [15:56:11]wFMCommunicate OK [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 0D 03 02 [15:56:11]Write to MH i2c: E2 08 00 C7 18 80 0D 03 02 00 00 00 00 5A [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 0B 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 0B 00 C7 18 00 5A C3 32 CA DD 98 79 39 90 00 9B [15:56:11]RAPDU: 5A C3 32 CA DD 98 79 39 90 00 [15:56:11]wFMCommunicate OK [15:56:11]SAM_PROTO_SignData done [15:56:11]FM_MakeSignedData done [15:56:11]CreateOFDProtocolMessage [15:56:11]wFMCommunicate request_size=4 [15:56:11]MH_SAM_APDU [15:56:11]CAPDU: 80 11 00 00 [15:56:11]Write to MH i2c: E2 08 00 C8 18 80 11 00 00 00 00 00 00 5A [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:11]Read from MH i2c: E2 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 17 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: E2 17 00 C8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 AD [15:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [15:56:11]wFMCommunicate OK [15:56:11]CreateOFDProtocolMessage done [15:56:11]OFDSenderStorePacket 4276 [15:56:11]StoreOFDPacket docnum=4276 [15:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 BA 01 00 00 CF CE B2 01 0D 19 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1F DC 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B4 10 00 00 35 04 06 00 96 1F 33 63 03 A5 5A C3 32 CA DD 98 79 39 [15:56:11]CheckFolder [15:56:11]dirname=/storage/ofd_packets [15:56:11]CheckFolder done [15:56:11]ProducePacketName [15:56:11]name=ofd_packets/00004276 [15:56:11]NVStorageSaveData ofd_packets/00004276 [15:56:11]File name is /storage/ofd_packets/00004276 [15:56:11]Write 472 bytes [15:56:11]NVStorageSaveData done [15:56:11]OFDSenderStorePacket done [15:56:11]KKMCreateOFDPacket done [15:56:11]NVStorageSaveData kkm_last_timestamp [15:56:11]File name is /storage/kkm_last_timestamp [15:56:11]Write 4 bytes [15:56:11]NVStorageSaveData done [15:56:11]ExternCall_PrintAddStr [15:56:11]wPrintStart [15:56:11]Write to MH i2c: 01 00 00 C9 18 E1 [15:56:11]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]OFD Sender: Processing packet 4276 [packets to send 2, broken 1] [15:56:12]ProducePacketName [15:56:12]name=ofd_packets/00004276 [15:56:12]OFD Sender: To server: pG, [15:56:12]CommunicateWithHost lk.salyk.kg:30040 [15:56:12]ConnectInit lk.salyk.kg [15:56:12]Read from MH i2c: 01 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: 01 07 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: 01 07 00 C9 18 00 00 00 00 00 FF 0F F6 [15:56:12]RasterBufferAndPrint [15:56:12]line Счет N : (3)4528 [15:56:12]line ИНН: 02508201610067 [15:56:12]line Контрольно-Кассовый Чек [15:56:12]line ПРОДАЖА [15:56:12]line Товар: 4700000480364 [15:56:12]line Напиток энерг Nitro экзотик 0.45 ж/б [15:56:12]line 1.000 * 85.00 [15:56:12]line = 85.00 [15:56:12]line НДС 12% НСП 1% [15:56:12]line > о реализуемом товаре [15:56:12]line Товар: 4700000480050 [15:56:12]line Напиток Nitro Energy эн green ж/б 0,45л [15:56:12]line 1.000 * 95.00 [15:56:12]line = 95.00 [15:56:12]line НДС 12% НСП 1% [15:56:12]line > о реализуемом товаре [15:56:12]line ИТОГО: 180.00 [15:56:12]line НСП 1% : 1.59 [15:56:12]line НДС 12% : 19.12 [15:56:12]line Наличными: 180.00 [15:56:12]line Безнал.: 0.00 [15:56:12]line Место: АЗС № 116 "Партнер Нефть" [15:56:12]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [15:56:12]line СНО: Общий режим [15:56:12]line Чек 51 06.06.2024 15:56 [15:56:12]line Смена: 85 ФФД: 1.0 [15:56:12]line ЗНМ: 0300000233 [15:56:12]line РНМ: 0000000000145775 [15:56:12]line Версия ККМ: v1.0 [15:56:12]line ФМ: 0000000000959360 [15:56:12]line ФД: 4276 [15:56:12]line ФПД: 165060750279589 [15:56:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T155615&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4276&fm=165060750279589&tin=02508201610067®Number=0000000000145775&sum=18000 [15:56:12]line 0 [15:56:12]written 0, free lines is 4095 [15:56:12]Connected sock=11 [15:56:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 BA 01 00 00 CF CE B2 01 0D 19 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1F DC 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B4 10 00 00 35 04 06 00 96 1F 33 63 03 A5 5A C3 32 CA DD 98 79 39 [15:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 43 57 47 00 9A 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 39 35 39 33 36 30 10 04 04 00 B4 10 00 00 F4 03 04 00 1F 88 61 66 B6 04 01 00 00 AD CC 55 30 83 93 AC E9 [15:56:12]CommunicateWithHost err = 0 [15:56:12]CheckOFDResponse [15:56:12]1017 (14) - 77093643461234 [15:56:12]1041 (16) - 0000000000959360 [15:56:12]1040 (4) - 4276 [15:56:12]1012 (4) - 06.06.2024 09:57 [15:56:12]1206 (1) - 0 [15:56:12]OFD Sender: Remove packet 4276 [15:56:12]ProducePacketName [15:56:12]name=ofd_packets/00004276 [15:56:12]NVStorageDeleteData [15:56:12]Write to MH i2c: 01 00 00 F9 18 11 [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: 01 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: 01 07 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: 01 07 00 F9 18 00 00 00 00 00 22 0C 46 [15:56:12]RasterBufferAndPrint [15:56:12]line [15:56:12]line [15:56:12]line [15:56:12]line [15:56:12]line [15:56:12]written 0, free lines is 3110 [15:56:12]MH_Cut [15:56:12]Write to MH i2c: D1 01 00 00 19 01 EB [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: D1 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: D1 01 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: D1 01 00 00 19 00 EA [15:56:12]Write to MH i2c: 01 00 00 01 19 1A [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:13]OFD Sender: No OFD packet to send [15:56:13]*** Cut start [15:56:13]*** Partial cut [15:56:13]*** CUTSNS_PIN = 1 [15:56:13]*** CUTSNS_PIN = 0 [15:56:14]*** Brake cut motor [15:56:14]Read from MH i2c: 01 [15:56:14]MH_I2C_Read... [15:56:14]*** Stop cut motor [15:56:14]*** Cut end [15:56:14]Read from MH i2c: 01 07 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: 01 07 00 01 19 00 00 00 00 00 FF 0F 2F [15:56:14]process_action close_receipt done [15:56:14]requested_data is exist [15:56:14]produce_requested_data [15:56:14]requested_item fm.sn is exist - process it [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 11 00 00 [15:56:14]Write to MH i2c: E2 08 00 02 19 80 11 00 00 00 00 00 00 95 [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 17 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 17 00 02 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 E8 [15:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [15:56:14]wFMCommunicate OK [15:56:14]requested_item fd.num is exist - process it [15:56:14]SAM_PROTO_GetFieldsCounters [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 13 00 00 [15:56:14]Write to MH i2c: E2 08 00 03 19 80 13 00 00 00 00 00 00 98 [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 62 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 62 00 03 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B4 10 00 00 0E 04 04 00 55 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 6F [15:56:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B4 10 00 00 0E 04 04 00 55 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 [15:56:14]wFMCommunicate OK [15:56:14]SAM_PROTO_GetFieldsCounters done [15:56:14]requested_item shift.num is exist - process it [15:56:14]requested_item shift.opened is exist - process it [15:56:14]req_shift_opened [15:56:14]FM_GetShiftState [15:56:14]SAM_PROTO_GetShiftState [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 13 01 00 [15:56:14]Write to MH i2c: E2 08 00 04 19 80 13 01 00 00 00 00 00 9A [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 0E 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 0E 00 04 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 53 [15:56:14]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [15:56:14]wFMCommunicate OK [15:56:14]SAM_PROTO_GetShiftState done [15:56:14]FM_GetShiftState done [15:56:14]req_shift_opened done [15:56:14]requested_item shift.open_date is exist - process it [15:56:14]req_shift_open_date [15:56:14]req_shift_open_date done [15:56:14]produce_requested_data done [15:56:14]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4276,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [15:56:14]process_action_free close_receipt [15:56:14]json_value_free [15:56:14]json_value_free done [15:56:14]process_json_proto returns [15:56:14]Send response to host [15:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4276,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [15:56:14]free response buf [15:56:14]execute_script done [15:56:14]execute_script returns [15:56:14]free content buf [15:56:14]Sock 9.Close socket [15:56:14]Sock 9.Thread stoped [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]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:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:34]accept exits with 8 [16:46:34]New connection [16:46:34]New thread 3066772836 created [16:46:34]Thread 3066629476 joined [16:46:34]Waiting for new connection... [16:46:34] Sock 8.Parse request [16:46:34]Sock 8.Check first char [16:46:34]Sock 8.First char is OK [16:46:34]request: POST /json_proto HTTP/1.0 [16:46:34]Method: POST [16:46:34]URL: /json_proto [16:46:34]Method is POST - this is cgi request [16:46:34]url: /json_proto [16:46:34]query_string will be loaded in cgi processing [16:46:34]execute_cgi json_proto POST (null) [16:46:34]execute_cgi path=json_proto method=POST [16:46:34]POST find Content-Length [16:46:34]Host: 172.17.56.68:8080 [16:46:34]Content-Length: 697 [16:46:34]Content-Type: application/json [16:46:34] [16:46:34]POST finish read [16:46:34]Found Content-Length = 697 [16:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)4529", "tax_sys" : 0, "items" : [ { "code": "4870002328619", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F\u0435\u043B,\u043B\u0435\u043C\u043E\u043D\u0433\u0440 \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:34]execute_script... [16:46: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 : (3)4529", "tax_sys" : 0, "items" : [ { "code": "4870002328619", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F\u0435\u043B,\u043B\u0435\u043C\u043E\u043D\u0433\u0440 \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:34]POST & json_proto [16:46:34]process_json_proto [16:46:34]json parsed OK: [16:46:34]protocol is kg_v1.0 [16:46:34]action value=close_receipt [16:46:34]process_action close_receipt [16:46:34]cmd_close_receipt [16:46:34]MH_GetDate [16:46:34]Write to MH i2c: F0 00 00 05 19 0D [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: F0 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: F0 09 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: F0 09 00 05 19 00 F0 E7 61 66 3A 8F 60 66 43 [16:46:34]GetLastDocTimeStamp 1717689375 [16:46:34]current date 1717692400 [16:46:34]FM_GetShiftState [16:46:34]SAM_PROTO_GetShiftState [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 13 01 00 [16:46:34]Write to MH i2c: E2 08 00 06 19 80 13 01 00 00 00 00 00 9C [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 0E 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 0E 00 06 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 55 [16:46:34]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [16:46:34]wFMCommunicate OK [16:46:34]SAM_PROTO_GetShiftState done [16:46:34]FM_GetShiftState done [16:46:34]opened in 1717632745 [16:46:34]opened+sec_in_day 1717719145 [16:46:34]quantity*price = 9000 [16:46:34]sum+1 = 9001 [16:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 116 "Партнер Нефть" Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 СНО: Общий режим Чек 52 06.06.2024 16:46 Смена: 85 ФФД: 1.0 ЗНМ: 0300000233 РНМ: 0000000000145775 Версия ККМ: v1.0 ФМ: 0000000000959360 ФД: 4277 ФПД: 246089754095826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T164640&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4277&fm=246089754095826&tin=02508201610067®Number=0000000000145775&sum=9000 0 [16:46:35]StoreToDocumentArchive [16:46:35]shift 85 fd 4277 [16:46:35]save to /storage/0085/doc_00004277 [16:46:35]save last doc name /storage/0085/doc_00004277 to /storage/kkm_last_doc_name [16:46:35]save OK [16:46:35]Clear old archive folders... [16:46:35]ProcessDocumentItem done err = 0, tmpTLVsize=298 [16:46:35]tlvbuf is 019EE360 [16:46:35]SAM_PROTO_ClearQueue [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 09 00 00 [16:46:35]Write to MH i2c: E2 08 00 13 19 80 09 00 00 00 00 00 00 9E [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 13 19 00 90 00 A0 [16:46:35]RAPDU: 90 00 [16:46:35]wFMCommunicate OK [16:46:35]SAM_PROTO_ClearQueue done [16:46:35]KKMCreateOFDPacket [16:46:35]OFDProtocolAddRootSTLVToBuf [16:46:35]FM_MakeSignedData [16:46:35]FM_MakeSignedData [16:46:35]SAM_PROTO_SignData [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 0D 01 02 [16:46:35]Write to MH i2c: E2 08 00 14 19 80 0D 01 02 00 00 00 00 A6 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 14 19 00 90 00 A1 [16:46:35]RAPDU: 90 00 [16:46:35]wFMCommunicate OK [16:46:35]wFMCommunicate request_size=255 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 34 00 00 00 F4 03 04 00 F0 E7 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [16:46:35]Write to MH i2c: E2 02 01 15 19 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 34 00 00 00 F4 03 04 00 F0 E7 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 B3 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 15 19 00 90 00 A2 [16:46:36]RAPDU: 90 00 [16:46:36]wFMCommunicate OK [16:46:36]wFMCommunicate request_size=57 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B5 10 00 00 35 04 06 00 DF D1 3C 60 30 D2 [16:46:36]Write to MH i2c: E2 3C 00 16 19 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B5 10 00 00 35 04 06 00 DF D1 3C 60 30 D2 00 00 7D [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 03 00 16 19 00 90 00 A3 [16:46:36]RAPDU: 90 00 [16:46:36]wFMCommunicate OK [16:46:36]wFMCommunicate request_size=4 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 0D 03 02 [16:46:36]Write to MH i2c: E2 08 00 17 19 80 0D 03 02 00 00 00 00 AB [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 0B 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 0B 00 17 19 00 CF 2D 0C FF 12 A3 72 40 90 00 1A [16:46:36]RAPDU: CF 2D 0C FF 12 A3 72 40 90 00 [16:46:36]wFMCommunicate OK [16:46:36]SAM_PROTO_SignData done [16:46:36]FM_MakeSignedData done [16:46:36]CreateOFDProtocolMessage [16:46:36]wFMCommunicate request_size=4 [16:46:36]MH_SAM_APDU [16:46:36]CAPDU: 80 11 00 00 [16:46:36]Write to MH i2c: E2 08 00 18 19 80 11 00 00 00 00 00 00 AB [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:36]Read from MH i2c: E2 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 17 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: E2 17 00 18 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 FE [16:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [16:46:36]wFMCommunicate OK [16:46:36]CreateOFDProtocolMessage done [16:46:36]OFDSenderStorePacket 4277 [16:46:36]StoreOFDPacket docnum=4277 [16:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3E 01 00 00 40 E8 36 01 4A F5 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 34 00 00 00 F4 03 04 00 F0 E7 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B5 10 00 00 35 04 06 00 DF D1 3C 60 30 D2 CF 2D 0C FF 12 A3 72 40 [16:46:36]CheckFolder [16:46:36]dirname=/storage/ofd_packets [16:46:36]CheckFolder done [16:46:36]ProducePacketName [16:46:36]name=ofd_packets/00004277 [16:46:36]NVStorageSaveData ofd_packets/00004277 [16:46:36]File name is /storage/ofd_packets/00004277 [16:46:36]Write 348 bytes [16:46:36]NVStorageSaveData done [16:46:36]OFDSenderStorePacket done [16:46:36]KKMCreateOFDPacket done [16:46:36]NVStorageSaveData kkm_last_timestamp [16:46:36]File name is /storage/kkm_last_timestamp [16:46:36]Write 4 bytes [16:46:36]NVStorageSaveData done [16:46:36]ExternCall_PrintAddStr [16:46:36]wPrintStart [16:46:36]Write to MH i2c: 01 00 00 19 19 32 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 07 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 07 00 19 19 00 00 00 00 00 FF 0F 47 [16:46:36]RasterBufferAndPrint [16:46:36]line Счет N : (3)4529 [16:46:36]line ИНН: 02508201610067 [16:46:36]line Контрольно-Кассовый Чек [16:46:36]line ПРОДАЖА [16:46:36]line Товар: 4870002328619 [16:46:36]line Напиток DADA апел,лемонгр ПЭТ 0,5л [16:46:36]line 1.000 * 90.00 [16:46:36]line = 90.00 [16:46:36]line НДС 12% НСП 1% [16:46:36]line > о реализуемом товаре [16:46:36]line ИТОГО: 90.00 [16:46:36]line НСП 1% : 0.80 [16:46:36]line НДС 12% : 9.56 [16:46:36]line Наличными: 90.00 [16:46:36]line Безнал.: 0.00 [16:46:36]line Место: АЗС № 116 "Партнер Нефть" [16:46:36]line Адрес: 720001, с. Барскоон, контур 98, Жети Огузский район, 42.181661,77.570794 [16:46:36]line СНО: Общий режим [16:46:36]line Чек 52 06.06.2024 16:46 [16:46:36]line Смена: 85 ФФД: 1.0 [16:46:36]line ЗНМ: 0300000233 [16:46:36]line РНМ: 0000000000145775 [16:46:36]line Версия ККМ: v1.0 [16:46:36]line ФМ: 0000000000959360 [16:46:36]line ФД: 4277 [16:46:36]line ФПД: 246089754095826 [16:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240606T164640&type=1&operation_type=1&fn_number=0000000000959360&fd_number=4277&fm=246089754095826&tin=02508201610067®Number=0000000000145775&sum=9000 [16:46:36]line 0 [16:46:36]OFD Sender: Processing packet 4277 [packets to send 2, broken 1] [16:46:36]ProducePacketName [16:46:36]name=ofd_packets/00004277 [16:46:36]OFD Sender: To server: pG, [16:46:36]CommunicateWithHost lk.salyk.kg:30040 [16:46:36]ConnectInit lk.salyk.kg [16:46:36]written 0, free lines is 4095 [16:46:36]Connected sock=11 [16:46:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 3E 01 00 00 40 E8 36 01 4A F5 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 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 BC 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 34 00 00 00 F4 03 04 00 F0 E7 61 66 0E 04 04 00 55 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B5 10 00 00 35 04 06 00 DF D1 3C 60 30 D2 CF 2D 0C FF 12 A3 72 40 [16:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 91 64 47 00 0F 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 39 35 39 33 36 30 10 04 04 00 B5 10 00 00 F4 03 04 00 EF 93 61 66 B6 04 01 00 00 25 90 81 1C 9C 08 1F 3A [16:46:37]CommunicateWithHost err = 0 [16:46:37]CheckOFDResponse [16:46:37]1017 (14) - 77093643461234 [16:46:37]1041 (16) - 0000000000959360 [16:46:37]1040 (4) - 4277 [16:46:37]1012 (4) - 06.06.2024 10:48 [16:46:37]1206 (1) - 0 [16:46:37]OFD Sender: Remove packet 4277 [16:46:37]ProducePacketName [16:46:37]name=ofd_packets/00004277 [16:46:37]NVStorageDeleteData [16:46:37]Write to MH i2c: 01 00 00 42 19 5B [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 07 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 07 00 42 19 00 00 00 00 00 B5 0C 23 [16:46:37]RasterBufferAndPrint [16:46:37]line [16:46:37]line [16:46:37]line [16:46:37]line [16:46:37]line [16:46:37]written 0, free lines is 3257 [16:46:37]MH_Cut [16:46:37]Write to MH i2c: D1 01 00 49 19 01 34 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: D1 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: D1 01 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: D1 01 00 49 19 00 33 [16:46:37]Write to MH i2c: 01 00 00 4A 19 63 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]OFD Sender: No OFD packet to send [16:46:38]*** Cut start [16:46:38]*** Partial cut [16:46:38]*** CUTSNS_PIN = 1 [16:46:38]*** CUTSNS_PIN = 0 [16:46:38]*** Brake cut motor [16:46:38]Read from MH i2c: 01 [16:46:38]MH_I2C_Read... [16:46:38]*** Stop cut motor [16:46:38]Read from MH i2c: 01 07 00 [16:46:38]MH_I2C_Read... [16:46:38]*** Cut end [16:46:38]Read from MH i2c: 01 07 00 4A 19 00 00 00 00 00 FF 0F 78 [16:46:38]process_action close_receipt done [16:46:38]requested_data is exist [16:46:38]produce_requested_data [16:46:38]requested_item fm.sn is exist - process it [16:46:38]wFMCommunicate request_size=4 [16:46:38]MH_SAM_APDU [16:46:38]CAPDU: 80 11 00 00 [16:46:38]Write to MH i2c: E2 08 00 4B 19 80 11 00 00 00 00 00 00 DE [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:38]Read from MH i2c: E2 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 17 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 17 00 4B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 31 [16:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [16:46:38]wFMCommunicate OK [16:46:38]requested_item fd.num is exist - process it [16:46:38]SAM_PROTO_GetFieldsCounters [16:46:38]wFMCommunicate request_size=4 [16:46:38]MH_SAM_APDU [16:46:38]CAPDU: 80 13 00 00 [16:46:38]Write to MH i2c: E2 08 00 4C 19 80 13 00 00 00 00 00 00 E1 [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:38]Read from MH i2c: E2 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 62 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 62 00 4C 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 BC [16:46:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 [16:46:38]wFMCommunicate OK [16:46:38]SAM_PROTO_GetFieldsCounters done [16:46:38]requested_item shift.num is exist - process it [16:46:38]requested_item shift.opened is exist - process it [16:46:38]req_shift_opened [16:46:38]FM_GetShiftState [16:46:38]SAM_PROTO_GetShiftState [16:46:38]wFMCommunicate request_size=4 [16:46:38]MH_SAM_APDU [16:46:38]CAPDU: 80 13 01 00 [16:46:38]Write to MH i2c: E2 08 00 4D 19 80 13 01 00 00 00 00 00 E3 [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:38]Read from MH i2c: E2 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 0E 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 0E 00 4D 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 9C [16:46:38]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [16:46:38]wFMCommunicate OK [16:46:38]SAM_PROTO_GetShiftState done [16:46:38]FM_GetShiftState done [16:46:38]req_shift_opened done [16:46:38]requested_item shift.open_date is exist - process it [16:46:38]req_shift_open_date [16:46:38]req_shift_open_date done [16:46:38]produce_requested_data done [16:46:38]produce_requested_data return {"fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [16:46:38]process_action_free close_receipt [16:46:38]json_value_free [16:46:38]json_value_free done [16:46:38]process_json_proto returns [16:46:38]Send response to host [16:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [16:46:38]free response buf [16:46:38]execute_script done [16:46:38]execute_script returns [16:46:38]free content buf [16:46:38]Sock 8.Close socket [16:46:38]Sock 8.Thread stoped [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:22]accept exits with 9 [16:47:22]New connection [16:47:22]New thread 3066629476 created [16:47:22]Thread 3066772836 joined [16:47:22]Waiting for new connection... [16:47:22] Sock 9.Parse request [16:47:22]Sock 9.Check first char [16:47:22]Sock 9.First char is OK [16:47:22]request: POST /json_proto HTTP/1.0 [16:47:22]Method: POST [16:47:22]URL: /json_proto [16:47:22]Method is POST - this is cgi request [16:47:22]url: /json_proto [16:47:22]query_string will be loaded in cgi processing [16:47:22]execute_cgi json_proto POST (null) [16:47:22]execute_cgi path=json_proto method=POST [16:47:22]POST find Content-Length [16:47:22]Host: 172.17.56.68:8080 [16:47:22]Content-Length: 215 [16:47:22]Content-Type: application/json [16:47:22] [16:47:22]POST finish read [16:47:22]Found Content-Length = 215 [16:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:22]execute_script... [16:47:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:22]POST & json_proto [16:47:22]process_json_proto [16:47:22]json parsed OK: [16:47:22]protocol is kg_v1.0 [16:47:22]action value=get_value [16:47:22]process_action get_value [16:47:22]cmd_get_value [16:47:22]process_action get_value done [16:47:22]requested_data is exist [16:47:22]produce_requested_data [16:47:22]requested_item kkm.sn is exist - process it [16:47:22]requested_item kkm.ver is exist - process it [16:47:22]requested_item fm.sn is exist - process it [16:47:22]wFMCommunicate request_size=4 [16:47:22]MH_SAM_APDU [16:47:22]CAPDU: 80 11 00 00 [16:47:22]Write to MH i2c: E2 08 00 4E 19 80 11 00 00 00 00 00 00 E1 [16:47:22]Write i2c OK [16:47:22]MH_I2C_Read... [16:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:22]Read from MH i2c: E2 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: E2 17 00 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: E2 17 00 4E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 34 [16:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [16:47:22]wFMCommunicate OK [16:47:22]requested_item fd.num is exist - process it [16:47:22]SAM_PROTO_GetFieldsCounters [16:47:22]wFMCommunicate request_size=4 [16:47:22]MH_SAM_APDU [16:47:22]CAPDU: 80 13 00 00 [16:47:22]Write to MH i2c: E2 08 00 4F 19 80 13 00 00 00 00 00 00 E4 [16:47:22]Write i2c OK [16:47:22]MH_I2C_Read... [16:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:22]Read from MH i2c: E2 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: E2 62 00 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: E2 62 00 4F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 BF [16:47:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 [16:47:22]wFMCommunicate OK [16:47:22]SAM_PROTO_GetFieldsCounters done [16:47:22]requested_item shift.num is exist - process it [16:47:22]requested_item shift.opened is exist - process it [16:47:22]req_shift_opened [16:47:22]FM_GetShiftState [16:47:22]SAM_PROTO_GetShiftState [16:47:22]wFMCommunicate request_size=4 [16:47:22]MH_SAM_APDU [16:47:22]CAPDU: 80 13 01 00 [16:47:22]Write to MH i2c: E2 08 00 50 19 80 13 01 00 00 00 00 00 E6 [16:47:22]Write i2c OK [16:47:22]MH_I2C_Read... [16:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:22]Read from MH i2c: E2 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: E2 0E 00 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: E2 0E 00 50 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 9F [16:47:22]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [16:47:22]wFMCommunicate OK [16:47:22]SAM_PROTO_GetShiftState done [16:47:22]FM_GetShiftState done [16:47:22]req_shift_opened done [16:47:22]requested_item shift.open_date is exist - process it [16:47:22]req_shift_open_date [16:47:22]req_shift_open_date done [16:47:22]produce_requested_data done [16:47:22]produce_requested_data return {"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [16:47:22]process_action_free get_value [16:47:22]json_value_free [16:47:22]json_value_free done [16:47:22]process_json_proto returns [16:47:22]Send response to host [16:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [16:47:22]free response buf [16:47:22]execute_script done [16:47:22]execute_script returns [16:47:22]free content buf [16:47:22]Sock 9.Close socket [16:47:22]Sock 9.Thread stoped [16:47:22]accept exits with 8 [16:47:22]New connection [16:47:22]New thread 3066772836 created [16:47:22]Thread 3066629476 joined [16:47:22]Waiting for new connection... [16:47:22] Sock 8.Parse request [16:47:22]Sock 8.Check first char [16:47:22]Sock 8.First char is OK [16:47:22]request: POST /json_proto HTTP/1.0 [16:47:22]Method: POST [16:47:22]URL: /json_proto [16:47:22]Method is POST - this is cgi request [16:47:22]url: /json_proto [16:47:22]query_string will be loaded in cgi processing [16:47:22]execute_cgi json_proto POST (null) [16:47:22]execute_cgi path=json_proto method=POST [16:47:22]POST find Content-Length [16:47:22]Host: 172.17.56.68:8080 [16:47:22]Content-Length: 331 [16:47:22]Content-Type: application/json [16:47:22] [16:47:22]POST finish read [16:47:22]Found Content-Length = 331 [16:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:47:22]execute_script... [16:47:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:47:23]POST & json_proto [16:47:23]process_json_proto [16:47:23]json parsed OK: [16:47:23]protocol is kg_v1.0 [16:47:23]action value=get_value [16:47:23]process_action get_value [16:47:23]cmd_get_value [16:47:23]process_action get_value done [16:47:23]requested_data is exist [16:47:23]produce_requested_data [16:47:23]requested_item fm.sale.total is exist - process it [16:47:23]SAM_PROTO_GetFMData [16:47:23]wFMCommunicate request_size=4 [16:47:23]MH_SAM_APDU [16:47:23]CAPDU: 80 13 03 00 [16:47:23]Write to MH i2c: E2 08 00 51 19 80 13 03 00 00 00 00 00 E9 [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:47:23]Read from MH i2c: E2 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 FD 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 FD 00 51 19 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 41 [16:47:23]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:47:23]wFMCommunicate OK [16:47:23]wFMCommunicate request_size=4 [16:47:23]MH_SAM_APDU [16:47:23]CAPDU: 80 17 00 00 [16:47:23]Write to MH i2c: E2 08 00 52 19 80 17 00 00 00 00 00 00 EB [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:23]Read from MH i2c: E2 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 FD 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 FD 00 52 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [16:47:23]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:47:23]wFMCommunicate OK [16:47:23]wFMCommunicate request_size=4 [16:47:23]MH_SAM_APDU [16:47:23]CAPDU: 80 17 00 00 [16:47:23]Write to MH i2c: E2 08 00 53 19 80 17 00 00 00 00 00 00 EC [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:24]Read from MH i2c: E2 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 FD 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 FD 00 53 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 18 [16:47:24]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:47:24]wFMCommunicate OK [16:47:24]wFMCommunicate request_size=4 [16:47:24]MH_SAM_APDU [16:47:24]CAPDU: 80 17 00 00 [16:47:24]Write to MH i2c: E2 08 00 54 19 80 17 00 00 00 00 00 00 ED [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:24]Read from MH i2c: E2 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 FD 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 FD 00 54 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 62 [16:47:24]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [16:47:24]wFMCommunicate OK [16:47:24]wFMCommunicate request_size=4 [16:47:24]MH_SAM_APDU [16:47:24]CAPDU: 80 17 00 00 [16:47:24]Write to MH i2c: E2 08 00 55 19 80 17 00 00 00 00 00 00 EE [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:47:24]Read from MH i2c: E2 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 D8 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 D8 00 55 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 D5 [16:47:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:47:24]wFMCommunicate OK [16:47:24]SAM_PROTO_GetFMData done [16:47:24]requested_item fm.sale_refund.total is exist - process it [16:47:24]requested_item fm.buy.total is exist - process it [16:47:24]requested_item shift.sale.total is exist - process it [16:47:24]SAM_PROTO_GetShiftData [16:47:24]wFMCommunicate request_size=4 [16:47:24]MH_SAM_APDU [16:47:24]CAPDU: 80 13 02 00 [16:47:24]Write to MH i2c: E2 08 00 56 19 80 13 02 00 00 00 00 00 ED [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:47:25]Read from MH i2c: E2 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 FD 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 FD 00 56 19 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 64 [16:47:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:47:25]wFMCommunicate OK [16:47:25]wFMCommunicate request_size=4 [16:47:25]MH_SAM_APDU [16:47:25]CAPDU: 80 17 00 00 [16:47:25]Write to MH i2c: E2 08 00 57 19 80 17 00 00 00 00 00 00 F0 [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:25]Read from MH i2c: E2 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 FD 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 FD 00 57 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 12 [16:47:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [16:47:25]wFMCommunicate OK [16:47:25]wFMCommunicate request_size=4 [16:47:25]MH_SAM_APDU [16:47:25]CAPDU: 80 17 00 00 [16:47:25]Write to MH i2c: E2 08 00 58 19 80 17 00 00 00 00 00 00 F1 [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:25]Read from MH i2c: E2 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 FD 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 FD 00 58 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A8 [16:47:25]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [16:47:25]wFMCommunicate OK [16:47:25]wFMCommunicate request_size=4 [16:47:25]MH_SAM_APDU [16:47:25]CAPDU: 80 17 00 00 [16:47:25]Write to MH i2c: E2 08 00 59 19 80 17 00 00 00 00 00 00 F2 [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:25]Read from MH i2c: E2 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 FD 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 FD 00 59 19 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 64 [16:47:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [16:47:26]wFMCommunicate OK [16:47:26]wFMCommunicate request_size=4 [16:47:26]MH_SAM_APDU [16:47:26]CAPDU: 80 17 00 00 [16:47:26]Write to MH i2c: E2 08 00 5A 19 80 17 00 00 00 00 00 00 F3 [16:47:26]Write i2c OK [16:47:26]MH_I2C_Read... [16:47:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:47:26]Read from MH i2c: E2 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 CB 00 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 CB 00 5A 19 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DC [16:47:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:47:26]wFMCommunicate OK [16:47:26]SAM_PROTO_GetShiftData done [16:47:26]requested_item shift.sale.total_cash is exist - process it [16:47:26]requested_item shift.sale_refund.total is exist - process it [16:47:26]requested_item shift.sale_refund.total_cash is exist - process it [16:47:26]requested_item shift.buy.total is exist - process it [16:47:26]requested_item shift.buy.total_cash is exist - process it [16:47:26]produce_requested_data done [16:47:26]produce_requested_data return {"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:47:26]process_action_free get_value [16:47:26]json_value_free [16:47:26]json_value_free done [16:47:26]process_json_proto returns [16:47:26]Send response to host [16:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:47:26]free response buf [16:47:26]execute_script done [16:47:26]execute_script returns [16:47:26]free content buf [16:47:26]Sock 8.Close socket [16:47:26]Sock 8.Thread stoped [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [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:11]accept exits with 9 [16:52:11]New connection [16:52:11]New thread 3066629476 created [16:52:11]Thread 3066772836 joined [16:52:11]Waiting for new connection... [16:52:11] Sock 9.Parse request [16:52:11]Sock 9.Check first char [16:52:11]Sock 9.First char is OK [16:52:11]request: POST /json_proto HTTP/1.0 [16:52:11]Method: POST [16:52:11]URL: /json_proto [16:52:11]Method is POST - this is cgi request [16:52:11]url: /json_proto [16:52:11]query_string will be loaded in cgi processing [16:52:11]execute_cgi json_proto POST (null) [16:52:11]execute_cgi path=json_proto method=POST [16:52:11]POST find Content-Length [16:52:11]Host: 172.17.56.68:8080 [16:52:11]Content-Length: 215 [16:52:11]Content-Type: application/json [16:52:11] [16:52:11]POST finish read [16:52:11]Found Content-Length = 215 [16:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:11]execute_script... [16:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:11]POST & json_proto [16:52:11]process_json_proto [16:52:11]json parsed OK: [16:52:11]protocol is kg_v1.0 [16:52:11]action value=get_value [16:52:11]process_action get_value [16:52:11]cmd_get_value [16:52:11]process_action get_value done [16:52:11]requested_data is exist [16:52:11]produce_requested_data [16:52:11]requested_item kkm.sn is exist - process it [16:52:11]requested_item kkm.ver is exist - process it [16:52:11]requested_item fm.sn is exist - process it [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 11 00 00 [16:52:11]Write to MH i2c: E2 08 00 5B 19 80 11 00 00 00 00 00 00 EE [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 17 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 17 00 5B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 41 [16:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [16:52:11]wFMCommunicate OK [16:52:11]requested_item fd.num is exist - process it [16:52:11]SAM_PROTO_GetFieldsCounters [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 13 00 00 [16:52:11]Write to MH i2c: E2 08 00 5C 19 80 13 00 00 00 00 00 00 F1 [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 62 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 62 00 5C 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 CC [16:52:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 [16:52:11]wFMCommunicate OK [16:52:11]SAM_PROTO_GetFieldsCounters done [16:52:11]requested_item shift.num is exist - process it [16:52:11]requested_item shift.opened is exist - process it [16:52:11]req_shift_opened [16:52:11]FM_GetShiftState [16:52:11]SAM_PROTO_GetShiftState [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 13 01 00 [16:52:11]Write to MH i2c: E2 08 00 5D 19 80 13 01 00 00 00 00 00 F3 [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 5D 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 AC [16:52:11]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [16:52:11]wFMCommunicate OK [16:52:11]SAM_PROTO_GetShiftState done [16:52:11]FM_GetShiftState done [16:52:11]req_shift_opened done [16:52:11]requested_item shift.open_date is exist - process it [16:52:11]req_shift_open_date [16:52:11]req_shift_open_date done [16:52:11]produce_requested_data done [16:52:11]produce_requested_data return {"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [16:52:11]process_action_free get_value [16:52:11]json_value_free [16:52:11]json_value_free done [16:52:11]process_json_proto returns [16:52:11]Send response to host [16:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [16:52:11]free response buf [16:52:11]execute_script done [16:52:11]execute_script returns [16:52:11]free content buf [16:52:11]Sock 9.Close socket [16:52:11]Sock 9.Thread stoped [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:20]accept exits with 8 [16:52:20]New connection [16:52:20]New thread 3066772836 created [16:52:20]Thread 3066629476 joined [16:52:20]Waiting for new connection... [16:52:20] Sock 8.Parse request [16:52:20]Sock 8.Check first char [16:52:20]Sock 8.First char is OK [16:52:20]request: POST /json_proto HTTP/1.0 [16:52:20]Method: POST [16:52:20]URL: /json_proto [16:52:20]Method is POST - this is cgi request [16:52:20]url: /json_proto [16:52:20]query_string will be loaded in cgi processing [16:52:20]execute_cgi json_proto POST (null) [16:52:20]execute_cgi path=json_proto method=POST [16:52:20]POST find Content-Length [16:52:20]Host: 172.17.56.68:8080 [16:52:20]Content-Length: 331 [16:52:20]Content-Type: application/json [16:52:20] [16:52:20]POST finish read [16:52:20]Found Content-Length = 331 [16:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:52:20]execute_script... [16:52:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:52:20]POST & json_proto [16:52:20]process_json_proto [16:52:20]json parsed OK: [16:52:20]protocol is kg_v1.0 [16:52:20]action value=get_value [16:52:20]process_action get_value [16:52:20]cmd_get_value [16:52:20]process_action get_value done [16:52:20]requested_data is exist [16:52:20]produce_requested_data [16:52:20]requested_item fm.sale.total is exist - process it [16:52:20]SAM_PROTO_GetFMData [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 13 03 00 [16:52:20]Write to MH i2c: E2 08 00 5E 19 80 13 03 00 00 00 00 00 F6 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 FD 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 FD 00 5E 19 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 4E [16:52:20]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:52:20]wFMCommunicate OK [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 17 00 00 [16:52:20]Write to MH i2c: E2 08 00 5F 19 80 17 00 00 00 00 00 00 F8 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:21]Read from MH i2c: E2 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 FD 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 FD 00 5F 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C0 [16:52:21]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:52:21]wFMCommunicate OK [16:52:21]wFMCommunicate request_size=4 [16:52:21]MH_SAM_APDU [16:52:21]CAPDU: 80 17 00 00 [16:52:21]Write to MH i2c: E2 08 00 60 19 80 17 00 00 00 00 00 00 F9 [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:21]Read from MH i2c: E2 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 FD 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 FD 00 60 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [16:52:21]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:52:21]wFMCommunicate OK [16:52:21]wFMCommunicate request_size=4 [16:52:21]MH_SAM_APDU [16:52:21]CAPDU: 80 17 00 00 [16:52:21]Write to MH i2c: E2 08 00 61 19 80 17 00 00 00 00 00 00 FA [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:21]Read from MH i2c: E2 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 FD 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 FD 00 61 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6F [16:52:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [16:52:21]wFMCommunicate OK [16:52:21]wFMCommunicate request_size=4 [16:52:21]MH_SAM_APDU [16:52:21]CAPDU: 80 17 00 00 [16:52:21]Write to MH i2c: E2 08 00 62 19 80 17 00 00 00 00 00 00 FB [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:52:21]Read from MH i2c: E2 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 D8 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 D8 00 62 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 E2 [16:52:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:52:21]wFMCommunicate OK [16:52:21]SAM_PROTO_GetFMData done [16:52:21]requested_item fm.sale_refund.total is exist - process it [16:52:21]requested_item fm.buy.total is exist - process it [16:52:21]requested_item shift.sale.total is exist - process it [16:52:21]SAM_PROTO_GetShiftData [16:52:21]wFMCommunicate request_size=4 [16:52:21]MH_SAM_APDU [16:52:21]CAPDU: 80 13 02 00 [16:52:21]Write to MH i2c: E2 08 00 63 19 80 13 02 00 00 00 00 00 FA [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 FD 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 FD 00 63 19 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 71 [16:52:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:52:22]wFMCommunicate OK [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 17 00 00 [16:52:22]Write to MH i2c: E2 08 00 64 19 80 17 00 00 00 00 00 00 FD [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 FD 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 FD 00 64 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 1F [16:52:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [16:52:22]wFMCommunicate OK [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 17 00 00 [16:52:22]Write to MH i2c: E2 08 00 65 19 80 17 00 00 00 00 00 00 FE [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]OFD Sender: No OFD packet to send [16:52:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 FD 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 FD 00 65 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 B5 [16:52:22]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [16:52:22]wFMCommunicate OK [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 17 00 00 [16:52:22]Write to MH i2c: E2 08 00 66 19 80 17 00 00 00 00 00 00 FF [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 FD 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 FD 00 66 19 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 71 [16:52:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [16:52:23]wFMCommunicate OK [16:52:23]wFMCommunicate request_size=4 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 17 00 00 [16:52:23]Write to MH i2c: E2 08 00 67 19 80 17 00 00 00 00 00 00 00 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 CB 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 CB 00 67 19 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E9 [16:52:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:52:23]wFMCommunicate OK [16:52:23]SAM_PROTO_GetShiftData done [16:52:23]requested_item shift.sale.total_cash is exist - process it [16:52:23]requested_item shift.sale_refund.total is exist - process it [16:52:23]requested_item shift.sale_refund.total_cash is exist - process it [16:52:23]requested_item shift.buy.total is exist - process it [16:52:23]requested_item shift.buy.total_cash is exist - process it [16:52:23]produce_requested_data done [16:52:23]produce_requested_data return {"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:52:23]process_action_free get_value [16:52:23]json_value_free [16:52:23]json_value_free done [16:52:23]process_json_proto returns [16:52:23]Send response to host [16:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:52:23]free response buf [16:52:23]execute_script done [16:52:23]execute_script returns [16:52:23]free content buf [16:52:23]Sock 8.Close socket [16:52:23]Sock 8.Thread stoped [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:09]accept exits with 9 [17:10:09]New connection [17:10:09]New thread 3066629476 created [17:10:09]Thread 3066772836 joined [17:10:09]Waiting for new connection... [17:10:09] Sock 9.Parse request [17:10:09]Sock 9.Check first char [17:10:09]Sock 9.First char is OK [17:10:09]request: POST /json_proto HTTP/1.0 [17:10:09]Method: POST [17:10:09]URL: /json_proto [17:10:09]Method is POST - this is cgi request [17:10:09]url: /json_proto [17:10:09]query_string will be loaded in cgi processing [17:10:09]execute_cgi json_proto POST (null) [17:10:09]execute_cgi path=json_proto method=POST [17:10:09]POST find Content-Length [17:10:09]Host: 172.17.56.68:8080 [17:10:09]Content-Length: 215 [17:10:09]Content-Type: application/json [17:10:09] [17:10:09]POST finish read [17:10:09]Found Content-Length = 215 [17:10:09]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" ] } } [17:10:09]execute_script... [17:10:09]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" ] } } [17:10:09]POST & json_proto [17:10:09]process_json_proto [17:10:09]json parsed OK: [17:10:09]protocol is kg_v1.0 [17:10:09]action value=get_value [17:10:09]process_action get_value [17:10:09]cmd_get_value [17:10:09]process_action get_value done [17:10:09]requested_data is exist [17:10:09]produce_requested_data [17:10:09]requested_item kkm.sn is exist - process it [17:10:09]requested_item kkm.ver is exist - process it [17:10:09]requested_item fm.sn is exist - process it [17:10:09]wFMCommunicate request_size=4 [17:10:09]MH_SAM_APDU [17:10:09]CAPDU: 80 11 00 00 [17:10:09]Write to MH i2c: E2 08 00 68 19 80 11 00 00 00 00 00 00 FB [17:10:09]Write i2c OK [17:10:09]MH_I2C_Read... [17:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:09]Read from MH i2c: E2 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 17 00 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 17 00 68 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 4E [17:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [17:10:09]wFMCommunicate OK [17:10:09]requested_item fd.num is exist - process it [17:10:09]SAM_PROTO_GetFieldsCounters [17:10:09]wFMCommunicate request_size=4 [17:10:09]MH_SAM_APDU [17:10:09]CAPDU: 80 13 00 00 [17:10:09]Write to MH i2c: E2 08 00 69 19 80 13 00 00 00 00 00 00 FE [17:10:09]Write i2c OK [17:10:09]MH_I2C_Read... [17:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:09]Read from MH i2c: E2 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 62 00 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 62 00 69 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 D9 [17:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 [17:10:09]wFMCommunicate OK [17:10:09]SAM_PROTO_GetFieldsCounters done [17:10:09]requested_item shift.num is exist - process it [17:10:09]requested_item shift.opened is exist - process it [17:10:09]req_shift_opened [17:10:09]FM_GetShiftState [17:10:09]SAM_PROTO_GetShiftState [17:10:09]wFMCommunicate request_size=4 [17:10:09]MH_SAM_APDU [17:10:09]CAPDU: 80 13 01 00 [17:10:09]Write to MH i2c: E2 08 00 6A 19 80 13 01 00 00 00 00 00 00 [17:10:09]Write i2c OK [17:10:09]MH_I2C_Read... [17:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:09]Read from MH i2c: E2 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 0E 00 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 0E 00 6A 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 B9 [17:10:09]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [17:10:09]wFMCommunicate OK [17:10:09]SAM_PROTO_GetShiftState done [17:10:09]FM_GetShiftState done [17:10:09]req_shift_opened done [17:10:09]requested_item shift.open_date is exist - process it [17:10:09]req_shift_open_date [17:10:09]req_shift_open_date done [17:10:09]produce_requested_data done [17:10:09]produce_requested_data return {"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [17:10:09]process_action_free get_value [17:10:09]json_value_free [17:10:09]json_value_free done [17:10:09]process_json_proto returns [17:10:09]Send response to host [17:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [17:10:09]free response buf [17:10:09]execute_script done [17:10:09]execute_script returns [17:10:09]free content buf [17:10:09]Sock 9.Close socket [17:10:09]Sock 9.Thread stoped [17:10:12]accept exits with 8 [17:10:12]New connection [17:10:12]New thread 3066772836 created [17:10:12]Thread 3066629476 joined [17:10:12]Waiting for new connection... [17:10:12] Sock 8.Parse request [17:10:12]Sock 8.Check first char [17:10:12]Sock 8.First char is OK [17:10:12]request: POST /json_proto HTTP/1.0 [17:10:12]Method: POST [17:10:12]URL: /json_proto [17:10:12]Method is POST - this is cgi request [17:10:12]url: /json_proto [17:10:12]query_string will be loaded in cgi processing [17:10:12]execute_cgi json_proto POST (null) [17:10:12]execute_cgi path=json_proto method=POST [17:10:12]POST find Content-Length [17:10:12]Host: 172.17.56.68:8080 [17:10:12]Content-Length: 331 [17:10:12]Content-Type: application/json [17:10:12] [17:10:12]POST finish read [17:10:12]Found Content-Length = 331 [17:10:12]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" ] } } [17:10:12]execute_script... [17:10:12]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" ] } } [17:10:12]POST & json_proto [17:10:12]process_json_proto [17:10:12]json parsed OK: [17:10:12]protocol is kg_v1.0 [17:10:12]action value=get_value [17:10:12]process_action get_value [17:10:12]cmd_get_value [17:10:12]process_action get_value done [17:10:12]requested_data is exist [17:10:12]produce_requested_data [17:10:12]requested_item fm.sale.total is exist - process it [17:10:12]SAM_PROTO_GetFMData [17:10:12]wFMCommunicate request_size=4 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 13 03 00 [17:10:12]Write to MH i2c: E2 08 00 6B 19 80 13 03 00 00 00 00 00 03 [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:10:13]Read from MH i2c: E2 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 FD 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 FD 00 6B 19 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 5B [17:10:13]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:10:13]wFMCommunicate OK [17:10:13]wFMCommunicate request_size=4 [17:10:13]MH_SAM_APDU [17:10:13]CAPDU: 80 17 00 00 [17:10:13]Write to MH i2c: E2 08 00 6C 19 80 17 00 00 00 00 00 00 05 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:13]Read from MH i2c: E2 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 FD 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 FD 00 6C 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [17:10:13]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:10:13]wFMCommunicate OK [17:10:13]wFMCommunicate request_size=4 [17:10:13]MH_SAM_APDU [17:10:13]CAPDU: 80 17 00 00 [17:10:13]Write to MH i2c: E2 08 00 6D 19 80 17 00 00 00 00 00 00 06 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:13]Read from MH i2c: E2 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 FD 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 FD 00 6D 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [17:10:13]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:10:13]wFMCommunicate OK [17:10:13]wFMCommunicate request_size=4 [17:10:13]MH_SAM_APDU [17:10:13]CAPDU: 80 17 00 00 [17:10:13]Write to MH i2c: E2 08 00 6E 19 80 17 00 00 00 00 00 00 07 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]OFD Sender: No OFD packet to send [17:10:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 FD 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 FD 00 6E 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 7C [17:10:14]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [17:10:14]wFMCommunicate OK [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 17 00 00 [17:10:14]Write to MH i2c: E2 08 00 6F 19 80 17 00 00 00 00 00 00 08 [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 D8 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 D8 00 6F 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 EF [17:10:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:10:14]wFMCommunicate OK [17:10:14]SAM_PROTO_GetFMData done [17:10:14]requested_item fm.sale_refund.total is exist - process it [17:10:14]requested_item fm.buy.total is exist - process it [17:10:14]requested_item shift.sale.total is exist - process it [17:10:14]SAM_PROTO_GetShiftData [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 13 02 00 [17:10:14]Write to MH i2c: E2 08 00 70 19 80 13 02 00 00 00 00 00 07 [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 FD 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 FD 00 70 19 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 7E [17:10:14]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:10:14]wFMCommunicate OK [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 17 00 00 [17:10:14]Write to MH i2c: E2 08 00 71 19 80 17 00 00 00 00 00 00 0A [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 FD 00 [17:10:14]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 FD 00 71 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 2C [17:10:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:10:15]wFMCommunicate OK [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 17 00 00 [17:10:15]Write to MH i2c: E2 08 00 72 19 80 17 00 00 00 00 00 00 0B [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 FD 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 FD 00 72 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C2 [17:10:15]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:10:15]wFMCommunicate OK [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 17 00 00 [17:10:15]Write to MH i2c: E2 08 00 73 19 80 17 00 00 00 00 00 00 0C [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 FD 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 FD 00 73 19 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 7E [17:10:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:10:15]wFMCommunicate OK [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 17 00 00 [17:10:15]Write to MH i2c: E2 08 00 74 19 80 17 00 00 00 00 00 00 0D [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 CB 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 CB 00 74 19 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F6 [17:10:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_GetShiftData done [17:10:15]requested_item shift.sale.total_cash is exist - process it [17:10:15]requested_item shift.sale_refund.total is exist - process it [17:10:15]requested_item shift.sale_refund.total_cash is exist - process it [17:10:15]requested_item shift.buy.total is exist - process it [17:10:15]requested_item shift.buy.total_cash is exist - process it [17:10:15]produce_requested_data done [17:10:15]produce_requested_data return {"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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} [17:10:15]process_action_free get_value [17:10:15]json_value_free [17:10:15]json_value_free done [17:10:15]process_json_proto returns [17:10:15]Send response to host [17:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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}}} [17:10:15]free response buf [17:10:15]execute_script done [17:10:15]execute_script returns [17:10:15]free content buf [17:10:15]Sock 8.Close socket [17:10:15]Sock 8.Thread stoped [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:19]accept exits with 9 [17:11:19]New connection [17:11:19]New thread 3066629476 created [17:11:19]Thread 3066772836 joined [17:11:19]Waiting for new connection... [17:11:19] Sock 9.Parse request [17:11:19]Sock 9.Check first char [17:11:19]Sock 9.First char is OK [17:11:19]request: POST /json_proto HTTP/1.0 [17:11:19]Method: POST [17:11:19]URL: /json_proto [17:11:19]Method is POST - this is cgi request [17:11:19]url: /json_proto [17:11:19]query_string will be loaded in cgi processing [17:11:19]execute_cgi json_proto POST (null) [17:11:19]execute_cgi path=json_proto method=POST [17:11:19]POST find Content-Length [17:11:19]Host: 172.17.56.68:8080 [17:11:19]Content-Length: 215 [17:11:19]Content-Type: application/json [17:11:19] [17:11:19]POST finish read [17:11:19]Found Content-Length = 215 [17:11:19]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" ] } } [17:11:19]execute_script... [17:11:19]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" ] } } [17:11:19]POST & json_proto [17:11:19]process_json_proto [17:11:19]json parsed OK: [17:11:19]protocol is kg_v1.0 [17:11:19]action value=get_value [17:11:19]process_action get_value [17:11:19]cmd_get_value [17:11:19]process_action get_value done [17:11:19]requested_data is exist [17:11:19]produce_requested_data [17:11:19]requested_item kkm.sn is exist - process it [17:11:19]requested_item kkm.ver is exist - process it [17:11:19]requested_item fm.sn is exist - process it [17:11:19]wFMCommunicate request_size=4 [17:11:19]MH_SAM_APDU [17:11:19]CAPDU: 80 11 00 00 [17:11:19]Write to MH i2c: E2 08 00 75 19 80 11 00 00 00 00 00 00 08 [17:11:19]Write i2c OK [17:11:19]MH_I2C_Read... [17:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:19]Read from MH i2c: E2 [17:11:19]MH_I2C_Read... [17:11:19]Read from MH i2c: E2 17 00 [17:11:19]MH_I2C_Read... [17:11:19]Read from MH i2c: E2 17 00 75 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 5B [17:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [17:11:19]wFMCommunicate OK [17:11:19]requested_item fd.num is exist - process it [17:11:19]SAM_PROTO_GetFieldsCounters [17:11:19]wFMCommunicate request_size=4 [17:11:19]MH_SAM_APDU [17:11:19]CAPDU: 80 13 00 00 [17:11:19]Write to MH i2c: E2 08 00 76 19 80 13 00 00 00 00 00 00 0B [17:11:19]Write i2c OK [17:11:19]MH_I2C_Read... [17:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:19]Read from MH i2c: E2 [17:11:19]MH_I2C_Read... [17:11:19]Read from MH i2c: E2 62 00 [17:11:19]MH_I2C_Read... [17:11:19]Read from MH i2c: E2 62 00 76 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 E6 [17:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 [17:11:19]wFMCommunicate OK [17:11:19]SAM_PROTO_GetFieldsCounters done [17:11:19]requested_item shift.num is exist - process it [17:11:19]requested_item shift.opened is exist - process it [17:11:19]req_shift_opened [17:11:19]FM_GetShiftState [17:11:19]SAM_PROTO_GetShiftState [17:11:19]wFMCommunicate request_size=4 [17:11:19]MH_SAM_APDU [17:11:19]CAPDU: 80 13 01 00 [17:11:19]Write to MH i2c: E2 08 00 77 19 80 13 01 00 00 00 00 00 0D [17:11:19]Write i2c OK [17:11:19]MH_I2C_Read... [17:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:19]Read from MH i2c: E2 [17:11:19]MH_I2C_Read... [17:11:19]Read from MH i2c: E2 0E 00 [17:11:19]MH_I2C_Read... [17:11:19]Read from MH i2c: E2 0E 00 77 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 C6 [17:11:19]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [17:11:19]wFMCommunicate OK [17:11:19]SAM_PROTO_GetShiftState done [17:11:19]FM_GetShiftState done [17:11:19]req_shift_opened done [17:11:19]requested_item shift.open_date is exist - process it [17:11:19]req_shift_open_date [17:11:19]req_shift_open_date done [17:11:19]produce_requested_data done [17:11:19]produce_requested_data return {"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [17:11:19]process_action_free get_value [17:11:19]json_value_free [17:11:19]json_value_free done [17:11:19]process_json_proto returns [17:11:19]Send response to host [17:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [17:11:19]free response buf [17:11:19]execute_script done [17:11:19]execute_script returns [17:11:19]free content buf [17:11:19]Sock 9.Close socket [17:11:19]Sock 9.Thread stoped [17:11:19]accept exits with 8 [17:11:19]New connection [17:11:19]New thread 3066772836 created [17:11:19]Thread 3066629476 joined [17:11:19]Waiting for new connection... [17:11:19] Sock 8.Parse request [17:11:19]Sock 8.Check first char [17:11:19]Sock 8.First char is OK [17:11:19]request: POST /json_proto HTTP/1.0 [17:11:19]Method: POST [17:11:19]URL: /json_proto [17:11:19]Method is POST - this is cgi request [17:11:19]url: /json_proto [17:11:19]query_string will be loaded in cgi processing [17:11:19]execute_cgi json_proto POST (null) [17:11:19]execute_cgi path=json_proto method=POST [17:11:19]POST find Content-Length [17:11:19]Host: 172.17.56.68:8080 [17:11:19]Content-Length: 331 [17:11:19]Content-Type: application/json [17:11:19] [17:11:19]POST finish read [17:11:19]Found Content-Length = 331 [17:11:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:11:19]execute_script... [17:11:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:11:19]POST & json_proto [17:11:19]process_json_proto [17:11:19]json parsed OK: [17:11:19]protocol is kg_v1.0 [17:11:19]action value=get_value [17:11:19]process_action get_value [17:11:19]cmd_get_value [17:11:19]process_action get_value done [17:11:19]requested_data is exist [17:11:19]produce_requested_data [17:11:19]requested_item fm.sale.total is exist - process it [17:11:19]SAM_PROTO_GetFMData [17:11:19]wFMCommunicate request_size=4 [17:11:19]MH_SAM_APDU [17:11:19]CAPDU: 80 13 03 00 [17:11:19]Write to MH i2c: E2 08 00 78 19 80 13 03 00 00 00 00 00 10 [17:11:19]Write i2c OK [17:11:19]MH_I2C_Read... [17:11:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:11:19]Read from MH i2c: E2 [17:11:19]MH_I2C_Read... [17:11:19]Read from MH i2c: E2 FD 00 [17:11:19]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 FD 00 78 19 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 68 [17:11:20]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:11:20]wFMCommunicate OK [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 17 00 00 [17:11:20]Write to MH i2c: E2 08 00 79 19 80 17 00 00 00 00 00 00 12 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 FD 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 FD 00 79 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [17:11:20]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:11:20]wFMCommunicate OK [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 17 00 00 [17:11:20]Write to MH i2c: E2 08 00 7A 19 80 17 00 00 00 00 00 00 13 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 FD 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 FD 00 7A 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [17:11:20]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:11:20]wFMCommunicate OK [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 17 00 00 [17:11:20]Write to MH i2c: E2 08 00 7B 19 80 17 00 00 00 00 00 00 14 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 FD 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 FD 00 7B 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 89 [17:11:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [17:11:20]wFMCommunicate OK [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 17 00 00 [17:11:20]Write to MH i2c: E2 08 00 7C 19 80 17 00 00 00 00 00 00 15 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:11:21]Read from MH i2c: E2 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: E2 D8 00 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: E2 D8 00 7C 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [17:11:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:11:21]wFMCommunicate OK [17:11:21]SAM_PROTO_GetFMData done [17:11:21]requested_item fm.sale_refund.total is exist - process it [17:11:21]requested_item fm.buy.total is exist - process it [17:11:21]requested_item shift.sale.total is exist - process it [17:11:21]SAM_PROTO_GetShiftData [17:11:21]wFMCommunicate request_size=4 [17:11:21]MH_SAM_APDU [17:11:21]CAPDU: 80 13 02 00 [17:11:21]Write to MH i2c: E2 08 00 7D 19 80 13 02 00 00 00 00 00 14 [17:11:21]Write i2c OK [17:11:21]MH_I2C_Read... [17:11:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:11:21]Read from MH i2c: E2 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: E2 FD 00 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: E2 FD 00 7D 19 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 8B [17:11:21]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:11:21]wFMCommunicate OK [17:11:21]wFMCommunicate request_size=4 [17:11:21]MH_SAM_APDU [17:11:21]CAPDU: 80 17 00 00 [17:11:21]Write to MH i2c: E2 08 00 7E 19 80 17 00 00 00 00 00 00 17 [17:11:21]Write i2c OK [17:11:21]MH_I2C_Read... [17:11:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:21]Read from MH i2c: E2 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: E2 FD 00 [17:11:21]MH_I2C_Read... [17:11:21]Read from MH i2c: E2 FD 00 7E 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 39 [17:11:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:11:21]wFMCommunicate OK [17:11:21]wFMCommunicate request_size=4 [17:11:21]MH_SAM_APDU [17:11:21]CAPDU: 80 17 00 00 [17:11:21]Write to MH i2c: E2 08 00 7F 19 80 17 00 00 00 00 00 00 18 [17:11:21]Write i2c OK [17:11:21]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 FD 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 FD 00 7F 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 CF [17:11:22]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:11:22]wFMCommunicate OK [17:11:22]wFMCommunicate request_size=4 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 17 00 00 [17:11:22]Write to MH i2c: E2 08 00 80 19 80 17 00 00 00 00 00 00 19 [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 FD 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 FD 00 80 19 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 8B [17:11:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:11:22]wFMCommunicate OK [17:11:22]wFMCommunicate request_size=4 [17:11:22]MH_SAM_APDU [17:11:22]CAPDU: 80 17 00 00 [17:11:22]Write to MH i2c: E2 08 00 81 19 80 17 00 00 00 00 00 00 1A [17:11:22]Write i2c OK [17:11:22]MH_I2C_Read... [17:11:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:11:22]Read from MH i2c: E2 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 CB 00 [17:11:22]MH_I2C_Read... [17:11:22]Read from MH i2c: E2 CB 00 81 19 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 03 [17:11:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:11:22]wFMCommunicate OK [17:11:22]SAM_PROTO_GetShiftData done [17:11:22]requested_item shift.sale.total_cash is exist - process it [17:11:22]requested_item shift.sale_refund.total is exist - process it [17:11:22]requested_item shift.sale_refund.total_cash is exist - process it [17:11:22]requested_item shift.buy.total is exist - process it [17:11:22]requested_item shift.buy.total_cash is exist - process it [17:11:22]produce_requested_data done [17:11:22]produce_requested_data return {"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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} [17:11:22]process_action_free get_value [17:11:22]json_value_free [17:11:22]json_value_free done [17:11:22]process_json_proto returns [17:11:22]Send response to host [17:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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}}} [17:11:22]free response buf [17:11:22]execute_script done [17:11:22]execute_script returns [17:11:22]free content buf [17:11:22]Sock 8.Close socket [17:11:22]Sock 8.Thread stoped [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:12]accept exits with 9 [17:12:12]New connection [17:12:12]New thread 3066629476 created [17:12:12]Thread 3066772836 joined [17:12:12]Waiting for new connection... [17:12:12] Sock 9.Parse request [17:12:12]Sock 9.Check first char [17:12:12]Sock 9.First char is OK [17:12:12]request: POST /json_proto HTTP/1.0 [17:12:12]Method: POST [17:12:12]URL: /json_proto [17:12:12]Method is POST - this is cgi request [17:12:12]url: /json_proto [17:12:12]query_string will be loaded in cgi processing [17:12:12]execute_cgi json_proto POST (null) [17:12:12]execute_cgi path=json_proto method=POST [17:12:12]POST find Content-Length [17:12:12]Host: 172.17.56.68:8080 [17:12:12]Content-Length: 215 [17:12:12]Content-Type: application/json [17:12:12] [17:12:12]POST finish read [17:12:12]Found Content-Length = 215 [17:12:12]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" ] } } [17:12:12]execute_script... [17:12:12]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" ] } } [17:12:12]POST & json_proto [17:12:12]process_json_proto [17:12:12]json parsed OK: [17:12:12]protocol is kg_v1.0 [17:12:12]action value=get_value [17:12:12]process_action get_value [17:12:12]cmd_get_value [17:12:12]process_action get_value done [17:12:12]requested_data is exist [17:12:12]produce_requested_data [17:12:12]requested_item kkm.sn is exist - process it [17:12:12]requested_item kkm.ver is exist - process it [17:12:12]requested_item fm.sn is exist - process it [17:12:12]wFMCommunicate request_size=4 [17:12:12]MH_SAM_APDU [17:12:12]CAPDU: 80 11 00 00 [17:12:12]Write to MH i2c: E2 08 00 82 19 80 11 00 00 00 00 00 00 15 [17:12:12]Write i2c OK [17:12:12]MH_I2C_Read... [17:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:12]Read from MH i2c: E2 [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: E2 17 00 [17:12:12]MH_I2C_Read... [17:12:12]Read from MH i2c: E2 17 00 82 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 68 [17:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [17:12:12]wFMCommunicate OK [17:12:12]requested_item fd.num is exist - process it [17:12:12]SAM_PROTO_GetFieldsCounters [17:12:12]wFMCommunicate request_size=4 [17:12:12]MH_SAM_APDU [17:12:12]CAPDU: 80 13 00 00 [17:12:12]Write to MH i2c: E2 08 00 83 19 80 13 00 00 00 00 00 00 18 [17:12:12]Write i2c OK [17:12:12]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 62 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 62 00 83 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 F3 [17:12:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 [17:12:13]wFMCommunicate OK [17:12:13]SAM_PROTO_GetFieldsCounters done [17:12:13]requested_item shift.num is exist - process it [17:12:13]requested_item shift.opened is exist - process it [17:12:13]req_shift_opened [17:12:13]FM_GetShiftState [17:12:13]SAM_PROTO_GetShiftState [17:12:13]wFMCommunicate request_size=4 [17:12:13]MH_SAM_APDU [17:12:13]CAPDU: 80 13 01 00 [17:12:13]Write to MH i2c: E2 08 00 84 19 80 13 01 00 00 00 00 00 1A [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 0E 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 0E 00 84 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 D3 [17:12:13]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [17:12:13]wFMCommunicate OK [17:12:13]SAM_PROTO_GetShiftState done [17:12:13]FM_GetShiftState done [17:12:13]req_shift_opened done [17:12:13]requested_item shift.open_date is exist - process it [17:12:13]req_shift_open_date [17:12:13]req_shift_open_date done [17:12:13]produce_requested_data done [17:12:13]produce_requested_data return {"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [17:12:13]process_action_free get_value [17:12:13]json_value_free [17:12:13]json_value_free done [17:12:13]process_json_proto returns [17:12:13]Send response to host [17:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [17:12:13]free response buf [17:12:13]execute_script done [17:12:13]execute_script returns [17:12:13]free content buf [17:12:13]Sock 9.Close socket [17:12:13]Sock 9.Thread stoped [17:12:13]accept exits with 8 [17:12:13]New connection [17:12:13]New thread 3066772836 created [17:12:13]Thread 3066629476 joined [17:12:13]Waiting for new connection... [17:12:13] Sock 8.Parse request [17:12:13]Sock 8.Check first char [17:12:13]Sock 8.First char is OK [17:12:13]request: POST /json_proto HTTP/1.0 [17:12:13]Method: POST [17:12:13]URL: /json_proto [17:12:13]Method is POST - this is cgi request [17:12:13]url: /json_proto [17:12:13]query_string will be loaded in cgi processing [17:12:13]execute_cgi json_proto POST (null) [17:12:13]execute_cgi path=json_proto method=POST [17:12:13]POST find Content-Length [17:12:13]Host: 172.17.56.68:8080 [17:12:13]Content-Length: 331 [17:12:13]Content-Type: application/json [17:12:13] [17:12:13]POST finish read [17:12:13]Found Content-Length = 331 [17:12:13]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" ] } } [17:12:13]execute_script... [17:12:13]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" ] } } [17:12:13]POST & json_proto [17:12:13]process_json_proto [17:12:13]json parsed OK: [17:12:13]protocol is kg_v1.0 [17:12:13]action value=get_value [17:12:13]process_action get_value [17:12:13]cmd_get_value [17:12:13]process_action get_value done [17:12:13]requested_data is exist [17:12:13]produce_requested_data [17:12:13]requested_item fm.sale.total is exist - process it [17:12:13]SAM_PROTO_GetFMData [17:12:13]wFMCommunicate request_size=4 [17:12:13]MH_SAM_APDU [17:12:13]CAPDU: 80 13 03 00 [17:12:13]Write to MH i2c: E2 08 00 85 19 80 13 03 00 00 00 00 00 1D [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 FD 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 FD 00 85 19 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 75 [17:12:13]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:12:13]wFMCommunicate OK [17:12:13]wFMCommunicate request_size=4 [17:12:13]MH_SAM_APDU [17:12:13]CAPDU: 80 17 00 00 [17:12:13]Write to MH i2c: E2 08 00 86 19 80 17 00 00 00 00 00 00 1F [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]OFD Sender: No OFD packet to send [17:12:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 FD 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 FD 00 86 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [17:12:14]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:12:14]wFMCommunicate OK [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 17 00 00 [17:12:14]Write to MH i2c: E2 08 00 87 19 80 17 00 00 00 00 00 00 20 [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 FD 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 FD 00 87 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [17:12:14]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:12:14]wFMCommunicate OK [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 17 00 00 [17:12:14]Write to MH i2c: E2 08 00 88 19 80 17 00 00 00 00 00 00 21 [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 FD 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 FD 00 88 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 96 [17:12:14]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [17:12:14]wFMCommunicate OK [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 17 00 00 [17:12:14]Write to MH i2c: E2 08 00 89 19 80 17 00 00 00 00 00 00 22 [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 D8 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 D8 00 89 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 09 [17:12:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:12:14]wFMCommunicate OK [17:12:14]SAM_PROTO_GetFMData done [17:12:14]requested_item fm.sale_refund.total is exist - process it [17:12:14]requested_item fm.buy.total is exist - process it [17:12:14]requested_item shift.sale.total is exist - process it [17:12:14]SAM_PROTO_GetShiftData [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 13 02 00 [17:12:14]Write to MH i2c: E2 08 00 8A 19 80 13 02 00 00 00 00 00 21 [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 FD 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 FD 00 8A 19 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 98 [17:12:15]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:12:15]wFMCommunicate OK [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 17 00 00 [17:12:15]Write to MH i2c: E2 08 00 8B 19 80 17 00 00 00 00 00 00 24 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 FD 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 FD 00 8B 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 46 [17:12:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:12:15]wFMCommunicate OK [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 17 00 00 [17:12:15]Write to MH i2c: E2 08 00 8C 19 80 17 00 00 00 00 00 00 25 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 FD 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 FD 00 8C 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 DC [17:12:15]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:12:15]wFMCommunicate OK [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 17 00 00 [17:12:15]Write to MH i2c: E2 08 00 8D 19 80 17 00 00 00 00 00 00 26 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 FD 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 FD 00 8D 19 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 98 [17:12:16]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:12:16]wFMCommunicate OK [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 17 00 00 [17:12:16]Write to MH i2c: E2 08 00 8E 19 80 17 00 00 00 00 00 00 27 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 CB 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 CB 00 8E 19 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 10 [17:12:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:12:16]wFMCommunicate OK [17:12:16]SAM_PROTO_GetShiftData done [17:12:16]requested_item shift.sale.total_cash is exist - process it [17:12:16]requested_item shift.sale_refund.total is exist - process it [17:12:16]requested_item shift.sale_refund.total_cash is exist - process it [17:12:16]requested_item shift.buy.total is exist - process it [17:12:16]requested_item shift.buy.total_cash is exist - process it [17:12:16]produce_requested_data done [17:12:16]produce_requested_data return {"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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} [17:12:16]process_action_free get_value [17:12:16]json_value_free [17:12:16]json_value_free done [17:12:16]process_json_proto returns [17:12:16]Send response to host [17:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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}}} [17:12:16]free response buf [17:12:16]execute_script done [17:12:16]execute_script returns [17:12:16]free content buf [17:12:16]Sock 8.Close socket [17:12:16]Sock 8.Thread stoped [17:12:16]accept exits with 9 [17:12:16]New connection [17:12:16]New thread 3066629476 created [17:12:16]Thread 3066772836 joined [17:12:16]Waiting for new connection... [17:12:16] Sock 9.Parse request [17:12:16]Sock 9.Check first char [17:12:16]Sock 9.First char is OK [17:12:16]request: POST /json_proto HTTP/1.0 [17:12:16]Method: POST [17:12:16]URL: /json_proto [17:12:16]Method is POST - this is cgi request [17:12:16]url: /json_proto [17:12:16]query_string will be loaded in cgi processing [17:12:16]execute_cgi json_proto POST (null) [17:12:16]execute_cgi path=json_proto method=POST [17:12:16]POST find Content-Length [17:12:16]Host: 172.17.56.68:8080 [17:12:16]Content-Length: 331 [17:12:16]Content-Type: application/json [17:12:16] [17:12:16]POST finish read [17:12:16]Found Content-Length = 331 [17:12:16]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" ] } } [17:12:16]execute_script... [17:12:16]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" ] } } [17:12:16]POST & json_proto [17:12:16]process_json_proto [17:12:16]json parsed OK: [17:12:16]protocol is kg_v1.0 [17:12:16]action value=get_value [17:12:16]process_action get_value [17:12:16]cmd_get_value [17:12:16]process_action get_value done [17:12:16]requested_data is exist [17:12:16]produce_requested_data [17:12:16]requested_item fm.sale.total is exist - process it [17:12:16]SAM_PROTO_GetFMData [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 13 03 00 [17:12:16]Write to MH i2c: E2 08 00 8F 19 80 13 03 00 00 00 00 00 27 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:12:17]Read from MH i2c: E2 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 FD 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 FD 00 8F 19 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 7F [17:12:17]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:12:17]wFMCommunicate OK [17:12:17]wFMCommunicate request_size=4 [17:12:17]MH_SAM_APDU [17:12:17]CAPDU: 80 17 00 00 [17:12:17]Write to MH i2c: E2 08 00 90 19 80 17 00 00 00 00 00 00 29 [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:17]Read from MH i2c: E2 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 FD 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 FD 00 90 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [17:12:17]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:12:17]wFMCommunicate OK [17:12:17]wFMCommunicate request_size=4 [17:12:17]MH_SAM_APDU [17:12:17]CAPDU: 80 17 00 00 [17:12:17]Write to MH i2c: E2 08 00 91 19 80 17 00 00 00 00 00 00 2A [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:17]Read from MH i2c: E2 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 FD 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 FD 00 91 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [17:12:17]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:12:17]wFMCommunicate OK [17:12:17]wFMCommunicate request_size=4 [17:12:17]MH_SAM_APDU [17:12:17]CAPDU: 80 17 00 00 [17:12:17]Write to MH i2c: E2 08 00 92 19 80 17 00 00 00 00 00 00 2B [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 FD 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 FD 00 92 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A0 [17:12:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [17:12:18]wFMCommunicate OK [17:12:18]wFMCommunicate request_size=4 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 17 00 00 [17:12:18]Write to MH i2c: E2 08 00 93 19 80 17 00 00 00 00 00 00 2C [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 D8 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 D8 00 93 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 13 [17:12:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:12:18]wFMCommunicate OK [17:12:18]SAM_PROTO_GetFMData done [17:12:18]requested_item fm.sale_refund.total is exist - process it [17:12:18]requested_item fm.buy.total is exist - process it [17:12:18]requested_item shift.sale.total is exist - process it [17:12:18]SAM_PROTO_GetShiftData [17:12:18]wFMCommunicate request_size=4 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 13 02 00 [17:12:18]Write to MH i2c: E2 08 00 94 19 80 13 02 00 00 00 00 00 2B [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 FD 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 FD 00 94 19 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 A2 [17:12:19]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:12:19]wFMCommunicate OK [17:12:19]wFMCommunicate request_size=4 [17:12:19]MH_SAM_APDU [17:12:19]CAPDU: 80 17 00 00 [17:12:19]Write to MH i2c: E2 08 00 95 19 80 17 00 00 00 00 00 00 2E [17:12:19]OFD Sender: No OFD packet to send [17:12:19]Write i2c OK [17:12:19]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 FD 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 FD 00 95 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 50 [17:12:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:12:19]wFMCommunicate OK [17:12:19]wFMCommunicate request_size=4 [17:12:19]MH_SAM_APDU [17:12:19]CAPDU: 80 17 00 00 [17:12:19]Write to MH i2c: E2 08 00 96 19 80 17 00 00 00 00 00 00 2F [17:12:19]Write i2c OK [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 [17:12:19]MH_I2C_Read... [17:12:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:19]Read from MH i2c: E2 FD 00 [17:12:19]MH_I2C_Read... [17:12:19]Read from MH i2c: E2 FD 00 96 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E6 [17:12:20]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:12:20]wFMCommunicate OK [17:12:20]wFMCommunicate request_size=4 [17:12:20]MH_SAM_APDU [17:12:20]CAPDU: 80 17 00 00 [17:12:20]Write to MH i2c: E2 08 00 97 19 80 17 00 00 00 00 00 00 30 [17:12:20]Write i2c OK [17:12:20]MH_I2C_Read... [17:12:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:20]Read from MH i2c: E2 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: E2 FD 00 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: E2 FD 00 97 19 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 A2 [17:12:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:12:20]wFMCommunicate OK [17:12:20]wFMCommunicate request_size=4 [17:12:20]MH_SAM_APDU [17:12:20]CAPDU: 80 17 00 00 [17:12:20]Write to MH i2c: E2 08 00 98 19 80 17 00 00 00 00 00 00 31 [17:12:20]Write i2c OK [17:12:20]MH_I2C_Read... [17:12:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:12:20]Read from MH i2c: E2 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: E2 CB 00 [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: E2 CB 00 98 19 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1A [17:12:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:12:20]wFMCommunicate OK [17:12:20]SAM_PROTO_GetShiftData done [17:12:20]requested_item shift.sale.total_cash is exist - process it [17:12:20]requested_item shift.sale_refund.total is exist - process it [17:12:20]requested_item shift.sale_refund.total_cash is exist - process it [17:12:20]requested_item shift.buy.total is exist - process it [17:12:20]requested_item shift.buy.total_cash is exist - process it [17:12:20]produce_requested_data done [17:12:20]produce_requested_data return {"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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} [17:12:20]process_action_free get_value [17:12:20]json_value_free [17:12:20]json_value_free done [17:12:20]process_json_proto returns [17:12:20]Send response to host [17:12:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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}}} [17:12:20]free response buf [17:12:20]execute_script done [17:12:20]execute_script returns [17:12:20]free content buf [17:12:20]Sock 9.Close socket [17:12:20]Sock 9.Thread stoped [17:12:20]accept exits with 8 [17:12:20]New connection [17:12:20]New thread 3066772836 created [17:12:20]Thread 3066629476 joined [17:12:20]Waiting for new connection... [17:12:20] Sock 8.Parse request [17:12:20]Sock 8.Check first char [17:12:20]Sock 8.First char is OK [17:12:20]request: POST /json_proto HTTP/1.0 [17:12:20]Method: POST [17:12:20]URL: /json_proto [17:12:20]Method is POST - this is cgi request [17:12:20]url: /json_proto [17:12:20]query_string will be loaded in cgi processing [17:12:20]execute_cgi json_proto POST (null) [17:12:20]execute_cgi path=json_proto method=POST [17:12:20]POST find Content-Length [17:12:20]Host: 172.17.56.68:8080 [17:12:20]Content-Length: 281 [17:12:20]Content-Type: application/json [17:12:20] [17:12:20]POST finish read [17:12:20]Found Content-Length = 281 [17:12:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:20]execute_script... [17:12:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:20]POST & json_proto [17:12:20]process_json_proto [17:12:20]json parsed OK: [17:12:20]protocol is kg_v1.0 [17:12:20]action value=x_report [17:12:20]process_action x_report [17:12:20]cmd_x_report [17:12:20]MH_GetDate [17:12:20]Write to MH i2c: F0 00 00 99 19 A1 [17:12:20]Write i2c OK [17:12:20]MH_I2C_Read... [17:12:20]Read from MH i2c: F0 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: F0 09 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: F0 09 00 99 19 00 FB ED 61 66 3A 8F 60 66 E8 [17:12:21]GetLastDocTimeStamp 1717692400 [17:12:21]current date 1717693947 [17:12:21]FM_GetShiftState [17:12:21]SAM_PROTO_GetShiftState [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 13 01 00 [17:12:21]Write to MH i2c: E2 08 00 9A 19 80 13 01 00 00 00 00 00 30 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 0E 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 0E 00 9A 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 E9 [17:12:21]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [17:12:21]wFMCommunicate OK [17:12:21]SAM_PROTO_GetShiftState done [17:12:21]FM_GetShiftState done [17:12:21]KKMCreateXReportDocument [17:12:21]Load OK [17:12:21]Malloc new data [17:12:21]MH_GetDate [17:12:21]Write to MH i2c: F0 00 00 9B 19 A3 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: F0 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: F0 09 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: F0 09 00 9B 19 00 FB ED 61 66 3A 8F 60 66 EA [17:12:21]Malloc new data [17:12:21]Malloc new data [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 11 00 00 [17:12:21]Write to MH i2c: E2 08 00 9C 19 80 11 00 00 00 00 00 00 2F [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 17 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 17 00 9C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 82 [17:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [17:12:21]wFMCommunicate OK [17:12:21]SAM_PROTO_GetFieldsCounters [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 13 00 00 [17:12:21]Write to MH i2c: E2 08 00 9D 19 80 13 00 00 00 00 00 00 32 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 62 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 62 00 9D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 0D [17:12:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 [17:12:21]wFMCommunicate OK [17:12:21]SAM_PROTO_GetFieldsCounters done [17:12:21]Malloc new data [17:12:21]Malloc new data [17:12:21]Malloc new data [17:12:21]KKMCreateXReportDocument OK [17:12:21]KKMSetXReportData OK [17:12:21]KKMPrepareXReportFMData [17:12:21]SAM_PROTO_GetShiftData [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 13 02 00 [17:12:21]Write to MH i2c: E2 08 00 9E 19 80 13 02 00 00 00 00 00 35 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 FD 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 FD 00 9E 19 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 AC [17:12:21]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:12:22]wFMCommunicate OK [17:12:22]wFMCommunicate request_size=4 [17:12:22]MH_SAM_APDU [17:12:22]CAPDU: 80 17 00 00 [17:12:22]Write to MH i2c: E2 08 00 9F 19 80 17 00 00 00 00 00 00 38 [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 FD 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 FD 00 9F 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 5A [17:12:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:12:22]wFMCommunicate OK [17:12:22]wFMCommunicate request_size=4 [17:12:22]MH_SAM_APDU [17:12:22]CAPDU: 80 17 00 00 [17:12:22]Write to MH i2c: E2 08 00 A0 19 80 17 00 00 00 00 00 00 39 [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 FD 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 FD 00 A0 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 F0 [17:12:22]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:12:22]wFMCommunicate OK [17:12:22]wFMCommunicate request_size=4 [17:12:22]MH_SAM_APDU [17:12:22]CAPDU: 80 17 00 00 [17:12:22]Write to MH i2c: E2 08 00 A1 19 80 17 00 00 00 00 00 00 3A [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:23]Read from MH i2c: E2 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: E2 FD 00 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: E2 FD 00 A1 19 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 AC [17:12:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:12:23]wFMCommunicate OK [17:12:23]wFMCommunicate request_size=4 [17:12:23]MH_SAM_APDU [17:12:23]CAPDU: 80 17 00 00 [17:12:23]Write to MH i2c: E2 08 00 A2 19 80 17 00 00 00 00 00 00 3B [17:12:23]Write i2c OK [17:12:23]MH_I2C_Read... [17:12:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:12:23]Read from MH i2c: E2 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: E2 CB 00 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: E2 CB 00 A2 19 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 24 [17:12:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:12:23]wFMCommunicate OK [17:12:23]SAM_PROTO_GetShiftData done [17:12:23]1194 (1194) - счетчики итогов смены [17:12:23] 1134 (4) - 52 - количество чеков со всеми признаками расчетов [17:12:23] 1129 (155) - счетчики операций «приход» [17:12:23] 1135 (4) - 52 - количество чеков по признаку расчетов [17:12:23] 1201 (3) - 8153.00 - общая итоговая сумма в чеках [17:12:23] 1136 (3) - 6320.00 - итоговая сумма в чеках наличными [17:12:23] 1138 (3) - 1833.00 - итоговая сумма в чеках безналичными [17:12:23] 1024 (122) - суммы налогов [17:12:23] 1006 (9) - суммы НДС [17:12:23] 1010 (1) - 0% - код ставки НДС [17:12:23] 1011 (0) - 0.00 - сумма НДС по ставке [17:12:23] 1006 (12) - суммы НДС [17:12:23] 1010 (1) - 12% - код ставки НДС [17:12:23] 1011 (3) - 865.82 - сумма НДС по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 0% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (11) - суммы НСП [17:12:23] 1014 (1) - 1% - код ставки НСП [17:12:23] 1015 (2) - 72.10 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 2% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 3% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 5% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 0,50% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 1,50% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1130 (141) - счетчики операций «возврат прихода» [17:12:23] 1135 (4) - 0 - количество чеков по признаку расчетов [17:12:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:12:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:12:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:12:23] 1024 (117) - суммы налогов [17:12:23] 1006 (9) - суммы НДС [17:12:23] 1010 (1) - 0% - код ставки НДС [17:12:23] 1011 (0) - 0.00 - сумма НДС по ставке [17:12:23] 1006 (9) - суммы НДС [17:12:23] 1010 (1) - 12% - код ставки НДС [17:12:23] 1011 (0) - 0.00 - сумма НДС по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 0% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 1% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 2% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 3% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 5% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 0,50% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 1,50% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1131 (141) - счетчики операций «расход» [17:12:23] 1135 (4) - 0 - количество чеков по признаку расчетов [17:12:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:12:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:12:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:12:23] 1024 (117) - суммы налогов [17:12:23] 1006 (9) - суммы НДС [17:12:23] 1010 (1) - 0% - код ставки НДС [17:12:23] 1011 (0) - 0.00 - сумма НДС по ставке [17:12:23] 1006 (9) - суммы НДС [17:12:23] 1010 (1) - 12% - код ставки НДС [17:12:23] 1011 (0) - 0.00 - сумма НДС по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:23] 1014 (1) - 0% - код ставки НСП [17:12:23] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:23] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 1% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 2% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 3% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 5% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 0,50% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 1,50% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1132 (141) - счетчики операций «возврат расхода» [17:12:24] 1135 (4) - 0 - количество чеков по признаку расчетов [17:12:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:12:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:12:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:12:24] 1024 (117) - суммы налогов [17:12:24] 1006 (9) - суммы НДС [17:12:24] 1010 (1) - 0% - код ставки НДС [17:12:24] 1011 (0) - 0.00 - сумма НДС по ставке [17:12:24] 1006 (9) - суммы НДС [17:12:24] 1010 (1) - 12% - код ставки НДС [17:12:24] 1011 (0) - 0.00 - сумма НДС по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 0% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 1% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 2% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 3% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 5% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 0,50% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1007 (9) - суммы НСП [17:12:24] 1014 (1) - 1,50% - код ставки НСП [17:12:24] 1015 (0) - 0.00 - сумма НСП по ставке [17:12:24] 1133 (588) - - счетчики коррекции - не используются [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1194 (04AA) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1134 (046E) [17:12:24]Malloc new data [17:12:24]Processing tag 1129 (0469) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1135 (046F) [17:12:24]Malloc new data [17:12:24]Processing tag 1201 (04B1) [17:12:24]Malloc new data [17:12:24]Processing tag 1136 (0470) [17:12:24]Malloc new data [17:12:24]Processing tag 1138 (0472) [17:12:24]Malloc new data [17:12:24]Processing tag 1024 (0400) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1006 (03EE) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1010 (03F2) [17:12:24]Malloc new data [17:12:24]Processing tag 1011 (03F3) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1006 (03EE) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1010 (03F2) [17:12:24]Malloc new data [17:12:24]Processing tag 1011 (03F3) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]OFD Sender: No OFD packet to send [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]SetTLVBufToDocument err=0 [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1130 (046A) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1135 (046F) [17:12:24]Malloc new data [17:12:24]Processing tag 1201 (04B1) [17:12:24]Malloc new data [17:12:24]Processing tag 1136 (0470) [17:12:24]Malloc new data [17:12:24]Processing tag 1138 (0472) [17:12:24]Malloc new data [17:12:24]Processing tag 1024 (0400) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1006 (03EE) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1010 (03F2) [17:12:24]Malloc new data [17:12:24]Processing tag 1011 (03F3) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1006 (03EE) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1010 (03F2) [17:12:24]Malloc new data [17:12:24]Processing tag 1011 (03F3) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]SetTLVBufToDocument err=0 [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1131 (046B) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1135 (046F) [17:12:24]Malloc new data [17:12:24]Processing tag 1201 (04B1) [17:12:24]Malloc new data [17:12:24]Processing tag 1136 (0470) [17:12:24]Malloc new data [17:12:24]Processing tag 1138 (0472) [17:12:24]Malloc new data [17:12:24]Processing tag 1024 (0400) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1006 (03EE) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1010 (03F2) [17:12:24]Malloc new data [17:12:24]Processing tag 1011 (03F3) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1006 (03EE) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1010 (03F2) [17:12:24]Malloc new data [17:12:24]Processing tag 1011 (03F3) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]SetTLVBufToDocument err=0 [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1132 (046C) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1135 (046F) [17:12:24]Malloc new data [17:12:24]Processing tag 1201 (04B1) [17:12:24]Malloc new data [17:12:24]Processing tag 1136 (0470) [17:12:24]Malloc new data [17:12:24]Processing tag 1138 (0472) [17:12:24]Malloc new data [17:12:24]Processing tag 1024 (0400) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1006 (03EE) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1010 (03F2) [17:12:24]Malloc new data [17:12:24]Processing tag 1011 (03F3) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1006 (03EE) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1010 (03F2) [17:12:24]Malloc new data [17:12:24]Processing tag 1011 (03F3) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1007 (03EF) [17:12:24]Load OK [17:12:24]SetTLVBufToDocument [17:12:24]Processing tag 1014 (03F6) [17:12:24]Malloc new data [17:12:24]Processing tag 1015 (03F7) [17:12:24]Malloc new data [17:12:24]SetTLVBufToDocument err=0 [17:12:24]SetTLVBufToDocument err=0 [17:12:24]SetTLVBufToDocument err=0 [17:12:24]Processing tag 1133 (046D) [17:12:24]Malloc new data [17:12:25]SetTLVBufToDocument err=0 [17:12:25]SetTLVBufToDocument err=0 [17:12:25]Malloc new data [17:12:25]SAM_PROTO_GetFMData [17:12:25]wFMCommunicate request_size=4 [17:12:25]MH_SAM_APDU [17:12:25]CAPDU: 80 13 03 00 [17:12:25]Write to MH i2c: E2 08 00 A3 19 80 13 03 00 00 00 00 00 3B [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:12:25]Read from MH i2c: E2 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 FD 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 FD 00 A3 19 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 93 [17:12:25]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:12:25]wFMCommunicate OK [17:12:25]wFMCommunicate request_size=4 [17:12:25]MH_SAM_APDU [17:12:25]CAPDU: 80 17 00 00 [17:12:25]Write to MH i2c: E2 08 00 A4 19 80 17 00 00 00 00 00 00 3D [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:25]Read from MH i2c: E2 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 FD 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 FD 00 A4 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 05 [17:12:26]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:12:26]wFMCommunicate OK [17:12:26]wFMCommunicate request_size=4 [17:12:26]MH_SAM_APDU [17:12:26]CAPDU: 80 17 00 00 [17:12:26]Write to MH i2c: E2 08 00 A5 19 80 17 00 00 00 00 00 00 3E [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:26]Read from MH i2c: E2 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 FD 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 FD 00 A5 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [17:12:26]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:12:26]wFMCommunicate OK [17:12:26]wFMCommunicate request_size=4 [17:12:26]MH_SAM_APDU [17:12:26]CAPDU: 80 17 00 00 [17:12:26]Write to MH i2c: E2 08 00 A6 19 80 17 00 00 00 00 00 00 3F [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 FD 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 FD 00 A6 19 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B4 [17:12:27]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [17:12:27]wFMCommunicate OK [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 17 00 00 [17:12:27]Write to MH i2c: E2 08 00 A7 19 80 17 00 00 00 00 00 00 40 [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 D8 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 D8 00 A7 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 27 [17:12:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:12:27]wFMCommunicate OK [17:12:27]SAM_PROTO_GetFMData done [17:12:27]FM_GetFMData:85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 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 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:12:28]oper:6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:12:28]total:7B 6F A7 05 [17:12:28]Malloc new data [17:12:28]oper:6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 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 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:12:28]total:10 B1 02 [17:12:28]Malloc new data [17:12:28]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 [17:12:28]total: [17:12:28]Malloc new data [17:12:28]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 [17:12:28]total: [17:12:28]Malloc new data [17:12:28]KKMPrepareXReportFMData err=0 [17:12:28]Х отчет ИНН: 02508201610067 Кассир: Барыктабасов Т. 06.06.2024 17:12 Смена: 10 РНМ: 0000000000145775 ЗНМ: 0300000233 СНО: Общий режим Всего чеков: 52 ИТОГИ ПРИХОД Чеков: 52 Общий итог: 8153.00 Итого наличными: 6320.00 Итого безнал.: 1833.00 НДС 0% : 0.00 НДС 12% : 865.82 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 72.10 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 6320.00 НС Приход: 948591.31 НС Возвр.Прихода: 1764.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000959360 [17:12:28]StoreToDocumentArchive [17:12:28]MH_GetDate [17:12:28]Write to MH i2c: F0 00 00 A8 19 B0 [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: F0 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: F0 09 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: F0 09 00 A8 19 00 02 EE 61 66 3A 8F 60 66 FF [17:12:28]shift 10 fd 1717693954 [17:12:28]Create dir for shift 0010 [17:12:28]save to /storage/0010/doc_1717693954 [17:12:28]save last doc name /storage/0010/doc_1717693954 to /storage/kkm_last_doc_name [17:12:28]save OK [17:12:28]Clear old archive folders... [17:12:28]NVStorageSaveData kkm_last_timestamp [17:12:28]File name is /storage/kkm_last_timestamp [17:12:28]Write 4 bytes [17:12:28]NVStorageSaveData done [17:12:28]ExternCall_PrintAddStr [17:12:28]wPrintStart [17:12:28]Write to MH i2c: 01 00 00 A9 19 C2 [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 07 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 07 00 A9 19 00 00 00 00 00 FF 0F D7 [17:12:28]RasterBufferAndPrint [17:12:28]line Х отчет [17:12:28]line ИНН: 02508201610067 [17:12:28]line Кассир: Барыктабасов Т. [17:12:28]line 06.06.2024 17:12 [17:12:28]line Смена: 10 [17:12:28]line РНМ: 0000000000145775 [17:12:28]line ЗНМ: 0300000233 [17:12:28]line СНО: Общий режим [17:12:28]line Всего чеков: 52 [17:12:28]line ИТОГИ ПРИХОД [17:12:28]line Чеков: 52 [17:12:28]line Общий итог: 8153.00 [17:12:28]line Итого наличными: 6320.00 [17:12:28]line Итого безнал.: 1833.00 [17:12:28]line НДС 0% : 0.00 [17:12:28]line НДС 12% : 865.82 [17:12:28]line НСП 0% : 0.00 [17:12:28]line НСП 1,50% : 0.00 [17:12:28]line НСП 0,50% : 0.00 [17:12:28]line НСП 5% : 0.00 [17:12:28]line НСП 3% : 0.00 [17:12:28]line НСП 2% : 0.00 [17:12:28]line НСП 1% : 72.10 [17:12:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:12:28]line Чеков: 0 [17:12:28]line Общий итог: 0.00 [17:12:28]line Итого наличными: 0.00 [17:12:28]line Итого безнал.: 0.00 [17:12:28]line НДС 0% : 0.00 [17:12:28]line НДС 12% : 0.00 [17:12:28]line НСП 0% : 0.00 [17:12:28]line НСП 1,50% : 0.00 [17:12:28]line НСП 0,50% : 0.00 [17:12:28]line НСП 5% : 0.00 [17:12:28]line НСП 3% : 0.00 [17:12:28]line НСП 2% : 0.00 [17:12:28]line НСП 1% : 0.00 [17:12:28]line ИТОГИ РАСХОД [17:12:28]line Чеков: 0 [17:12:28]line Общий итог: 0.00 [17:12:28]line Итого наличными: 0.00 [17:12:28]line Итого безнал.: 0.00 [17:12:28]line НДС 0% : 0.00 [17:12:28]line НДС 12% : 0.00 [17:12:28]line НСП 0% : 0.00 [17:12:28]line НСП 1,50% : 0.00 [17:12:28]line НСП 0,50% : 0.00 [17:12:28]line НСП 5% : 0.00 [17:12:28]line НСП 3% : 0.00 [17:12:28]line НСП 2% : 0.00 [17:12:28]line НСП 1% : 0.00 [17:12:28]line ИТОГИ ВОЗВРАТ РАСХОДА [17:12:28]line Чеков: 0 [17:12:28]line Общий итог: 0.00 [17:12:28]line Итого наличными: 0.00 [17:12:28]line Итого безнал.: 0.00 [17:12:28]line НДС 0% : 0.00 [17:12:28]line НДС 12% : 0.00 [17:12:28]line НСП 0% : 0.00 [17:12:28]line НСП 1,50% : 0.00 [17:12:28]line НСП 0,50% : 0.00 [17:12:28]line НСП 5% : 0.00 [17:12:28]line НСП 3% : 0.00 [17:12:28]line НСП 2% : 0.00 [17:12:28]line НСП 1% : 0.00 [17:12:28]line Сумма внесений: 0.00 [17:12:28]line Сумма выплат: 0.00 [17:12:28]line Нал. в кассе: 6320.00 [17:12:28]line НС Приход: 948591.31 [17:12:28]line НС Возвр.Прихода: 1764.00 [17:12:28]line НС Расход: 0.00 [17:12:28]line НС Возвр.Расхода: 0.00 [17:12:28]line ФМ: 0000000000959360 [17:12:28]written 0, free lines is 4095 [17:12:29]OFD Sender: No OFD packet to send [17:12:29]Write to MH i2c: 01 00 00 F4 19 0D [17:12:29]Write i2c OK [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: 01 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: 01 07 00 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 1F 0A 3D [17:12:29]RasterBufferAndPrint [17:12:29]line [17:12:29]line [17:12:29]line [17:12:29]line [17:12:29]line [17:12:29]written 0, free lines is 2614 [17:12:29]MH_Cut [17:12:29]Write to MH i2c: D1 01 00 FB 19 01 E6 [17:12:29]Write i2c OK [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: D1 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: D1 01 00 [17:12:29]MH_I2C_Read... [17:12:29]Read from MH i2c: D1 01 00 FB 19 00 E5 [17:12:29]Write to MH i2c: 01 00 00 FC 19 15 [17:12:29]Write i2c OK [17:12:29]MH_I2C_Read... [17:12:30]*** Cut start [17:12:30]*** Partial cut [17:12:30]*** CUTSNS_PIN = 1 [17:12:30]*** CUTSNS_PIN = 0 [17:12:31]*** Brake cut motor [17:12:31]Read from MH i2c: 01 [17:12:31]MH_I2C_Read... [17:12:31]*** Stop cut motor [17:12:31]*** Cut end [17:12:31]Read from MH i2c: 01 07 00 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 FF 0F 2A [17:12:31]process_action x_report done [17:12:31]requested_data is exist [17:12:31]produce_requested_data [17:12:31]requested_item fd.num is exist - process it [17:12:31]SAM_PROTO_GetFieldsCounters [17:12:31]wFMCommunicate request_size=4 [17:12:31]MH_SAM_APDU [17:12:31]CAPDU: 80 13 00 00 [17:12:31]Write to MH i2c: E2 08 00 FD 19 80 13 00 00 00 00 00 00 92 [17:12:31]Write i2c OK [17:12:31]MH_I2C_Read... [17:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:31]Read from MH i2c: E2 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 62 00 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 62 00 FD 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 6D [17:12:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 [17:12:31]wFMCommunicate OK [17:12:31]SAM_PROTO_GetFieldsCounters done [17:12:31]requested_item shift.num is exist - process it [17:12:31]requested_item shift.opened is exist - process it [17:12:31]req_shift_opened [17:12:31]FM_GetShiftState [17:12:31]SAM_PROTO_GetShiftState [17:12:31]wFMCommunicate request_size=4 [17:12:31]MH_SAM_APDU [17:12:31]CAPDU: 80 13 01 00 [17:12:31]Write to MH i2c: E2 08 00 FE 19 80 13 01 00 00 00 00 00 94 [17:12:31]Write i2c OK [17:12:31]MH_I2C_Read... [17:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:31]Read from MH i2c: E2 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 0E 00 [17:12:31]MH_I2C_Read... [17:12:31]Read from MH i2c: E2 0E 00 FE 19 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 4D [17:12:31]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [17:12:31]wFMCommunicate OK [17:12:31]SAM_PROTO_GetShiftState done [17:12:31]FM_GetShiftState done [17:12:31]req_shift_opened done [17:12:31]requested_item shift.open_date is exist - process it [17:12:31]req_shift_open_date [17:12:31]req_shift_open_date done [17:12:31]produce_requested_data done [17:12:31]produce_requested_data return {"fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [17:12:31]process_action_free x_report [17:12:31]json_value_free [17:12:31]json_value_free done [17:12:31]process_json_proto returns [17:12:31]Send response to host [17:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [17:12:31]free response buf [17:12:31]execute_script done [17:12:31]execute_script returns [17:12:31]free content buf [17:12:31]Sock 8.Close socket [17:12:31]Sock 8.Thread stoped [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:06]accept exits with 9 [17:13:06]New connection [17:13:06]New thread 3066629476 created [17:13:06]Thread 3066772836 joined [17:13:06]Waiting for new connection... [17:13:06] Sock 9.Parse request [17:13:06]Sock 9.Check first char [17:13:06]Sock 9.First char is OK [17:13:06]request: POST /json_proto HTTP/1.0 [17:13:06]Method: POST [17:13:06]URL: /json_proto [17:13:06]Method is POST - this is cgi request [17:13:06]url: /json_proto [17:13:06]query_string will be loaded in cgi processing [17:13:06]execute_cgi json_proto POST (null) [17:13:06]execute_cgi path=json_proto method=POST [17:13:06]POST find Content-Length [17:13:06]Host: 172.17.56.68:8080 [17:13:06]Content-Length: 215 [17:13:06]Content-Type: application/json [17:13:06] [17:13:06]POST finish read [17:13:06]Found Content-Length = 215 [17:13:06]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" ] } } [17:13:06]execute_script... [17:13:06]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" ] } } [17:13:06]POST & json_proto [17:13:06]process_json_proto [17:13:06]json parsed OK: [17:13:06]protocol is kg_v1.0 [17:13:06]action value=get_value [17:13:06]process_action get_value [17:13:06]cmd_get_value [17:13:06]process_action get_value done [17:13:06]requested_data is exist [17:13:06]produce_requested_data [17:13:06]requested_item kkm.sn is exist - process it [17:13:06]requested_item kkm.ver is exist - process it [17:13:06]requested_item fm.sn is exist - process it [17:13:06]wFMCommunicate request_size=4 [17:13:06]MH_SAM_APDU [17:13:06]CAPDU: 80 11 00 00 [17:13:06]Write to MH i2c: E2 08 00 FF 19 80 11 00 00 00 00 00 00 92 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:06]Read from MH i2c: E2 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 17 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 17 00 FF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 E5 [17:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [17:13:06]wFMCommunicate OK [17:13:06]requested_item fd.num is exist - process it [17:13:06]SAM_PROTO_GetFieldsCounters [17:13:06]wFMCommunicate request_size=4 [17:13:06]MH_SAM_APDU [17:13:06]CAPDU: 80 13 00 00 [17:13:06]Write to MH i2c: E2 08 00 00 1A 80 13 00 00 00 00 00 00 96 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:06]Read from MH i2c: E2 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 62 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 62 00 00 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 71 [17:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B5 10 00 00 0E 04 04 00 55 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 [17:13:06]wFMCommunicate OK [17:13:06]SAM_PROTO_GetFieldsCounters done [17:13:06]requested_item shift.num is exist - process it [17:13:06]requested_item shift.opened is exist - process it [17:13:06]req_shift_opened [17:13:06]FM_GetShiftState [17:13:06]SAM_PROTO_GetShiftState [17:13:06]wFMCommunicate request_size=4 [17:13:06]MH_SAM_APDU [17:13:06]CAPDU: 80 13 01 00 [17:13:06]Write to MH i2c: E2 08 00 01 1A 80 13 01 00 00 00 00 00 98 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:06]Read from MH i2c: E2 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 0E 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: E2 0E 00 01 1A 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 51 [17:13:06]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [17:13:06]wFMCommunicate OK [17:13:06]SAM_PROTO_GetShiftState done [17:13:06]FM_GetShiftState done [17:13:06]req_shift_opened done [17:13:06]requested_item shift.open_date is exist - process it [17:13:06]req_shift_open_date [17:13:06]req_shift_open_date done [17:13:06]produce_requested_data done [17:13:06]produce_requested_data return {"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745} [17:13:06]process_action_free get_value [17:13:06]json_value_free [17:13:06]json_value_free done [17:13:06]process_json_proto returns [17:13:06]Send response to host [17:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4277,"shift.num":85,"shift.opened":1,"shift.open_date":1717632745}}} [17:13:06]free response buf [17:13:06]execute_script done [17:13:06]execute_script returns [17:13:06]free content buf [17:13:06]Sock 9.Close socket [17:13:06]Sock 9.Thread stoped [17:13:06]accept exits with 8 [17:13:06]New connection [17:13:06]New thread 3066772836 created [17:13:06]Thread 3066629476 joined [17:13:06]Waiting for new connection... [17:13:06] Sock 8.Parse request [17:13:06]Sock 8.Check first char [17:13:06]Sock 8.First char is OK [17:13:06]request: POST /json_proto HTTP/1.0 [17:13:06]Method: POST [17:13:06]URL: /json_proto [17:13:06]Method is POST - this is cgi request [17:13:06]url: /json_proto [17:13:06]query_string will be loaded in cgi processing [17:13:06]execute_cgi json_proto POST (null) [17:13:06]execute_cgi path=json_proto method=POST [17:13:06]POST find Content-Length [17:13:06]Host: 172.17.56.68:8080 [17:13:06]Content-Length: 331 [17:13:06]Content-Type: application/json [17:13:06] [17:13:06]POST finish read [17:13:06]Found Content-Length = 331 [17:13:06]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" ] } } [17:13:06]execute_script... [17:13:06]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" ] } } [17:13:06]POST & json_proto [17:13:06]process_json_proto [17:13:06]json parsed OK: [17:13:06]protocol is kg_v1.0 [17:13:06]action value=get_value [17:13:07]process_action get_value [17:13:07]cmd_get_value [17:13:07]process_action get_value done [17:13:07]requested_data is exist [17:13:07]produce_requested_data [17:13:07]requested_item fm.sale.total is exist - process it [17:13:07]SAM_PROTO_GetFMData [17:13:07]wFMCommunicate request_size=4 [17:13:07]MH_SAM_APDU [17:13:07]CAPDU: 80 13 03 00 [17:13:07]Write to MH i2c: E2 08 00 02 1A 80 13 03 00 00 00 00 00 9B [17:13:07]Write i2c OK [17:13:07]MH_I2C_Read... [17:13:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:13:07]Read from MH i2c: E2 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 FD 00 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 FD 00 02 1A 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 F3 [17:13:07]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:13:07]wFMCommunicate OK [17:13:07]wFMCommunicate request_size=4 [17:13:07]MH_SAM_APDU [17:13:07]CAPDU: 80 17 00 00 [17:13:07]Write to MH i2c: E2 08 00 03 1A 80 17 00 00 00 00 00 00 9D [17:13:07]Write i2c OK [17:13:07]MH_I2C_Read... [17:13:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:07]Read from MH i2c: E2 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 FD 00 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 FD 00 03 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [17:13:07]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:13:07]wFMCommunicate OK [17:13:07]wFMCommunicate request_size=4 [17:13:07]MH_SAM_APDU [17:13:07]CAPDU: 80 17 00 00 [17:13:07]Write to MH i2c: E2 08 00 04 1A 80 17 00 00 00 00 00 00 9E [17:13:07]Write i2c OK [17:13:07]MH_I2C_Read... [17:13:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:07]Read from MH i2c: E2 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 FD 00 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 FD 00 04 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CA [17:13:08]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:13:08]wFMCommunicate OK [17:13:08]wFMCommunicate request_size=4 [17:13:08]MH_SAM_APDU [17:13:08]CAPDU: 80 17 00 00 [17:13:08]Write to MH i2c: E2 08 00 05 1A 80 17 00 00 00 00 00 00 9F [17:13:08]Write i2c OK [17:13:08]MH_I2C_Read... [17:13:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:08]Read from MH i2c: E2 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 FD 00 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 FD 00 05 1A 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 14 [17:13:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [17:13:08]wFMCommunicate OK [17:13:08]wFMCommunicate request_size=4 [17:13:08]MH_SAM_APDU [17:13:08]CAPDU: 80 17 00 00 [17:13:08]Write to MH i2c: E2 08 00 06 1A 80 17 00 00 00 00 00 00 A0 [17:13:08]Write i2c OK [17:13:08]MH_I2C_Read... [17:13:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:13:08]Read from MH i2c: E2 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 D8 00 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 D8 00 06 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 87 [17:13:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:13:08]wFMCommunicate OK [17:13:08]SAM_PROTO_GetFMData done [17:13:08]requested_item fm.sale_refund.total is exist - process it [17:13:08]requested_item fm.buy.total is exist - process it [17:13:08]requested_item shift.sale.total is exist - process it [17:13:08]SAM_PROTO_GetShiftData [17:13:08]wFMCommunicate request_size=4 [17:13:08]MH_SAM_APDU [17:13:08]CAPDU: 80 13 02 00 [17:13:08]Write to MH i2c: E2 08 00 07 1A 80 13 02 00 00 00 00 00 9F [17:13:08]Write i2c OK [17:13:08]MH_I2C_Read... [17:13:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:13:09]Read from MH i2c: E2 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 FD 00 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 FD 00 07 1A 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 16 [17:13:09]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:13:09]wFMCommunicate OK [17:13:09]wFMCommunicate request_size=4 [17:13:09]MH_SAM_APDU [17:13:09]CAPDU: 80 17 00 00 [17:13:09]Write to MH i2c: E2 08 00 08 1A 80 17 00 00 00 00 00 00 A2 [17:13:09]Write i2c OK [17:13:09]MH_I2C_Read... [17:13:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:09]Read from MH i2c: E2 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 FD 00 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 FD 00 08 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C4 [17:13:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:13:09]wFMCommunicate OK [17:13:09]wFMCommunicate request_size=4 [17:13:09]MH_SAM_APDU [17:13:09]CAPDU: 80 17 00 00 [17:13:09]Write to MH i2c: E2 08 00 09 1A 80 17 00 00 00 00 00 00 A3 [17:13:09]Write i2c OK [17:13:09]MH_I2C_Read... [17:13:09]OFD Sender: No OFD packet to send [17:13:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:09]Read from MH i2c: E2 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 FD 00 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 FD 00 09 1A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 5A [17:13:09]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:13:09]wFMCommunicate OK [17:13:09]wFMCommunicate request_size=4 [17:13:09]MH_SAM_APDU [17:13:09]CAPDU: 80 17 00 00 [17:13:09]Write to MH i2c: E2 08 00 0A 1A 80 17 00 00 00 00 00 00 A4 [17:13:09]Write i2c OK [17:13:09]MH_I2C_Read... [17:13:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:10]Read from MH i2c: E2 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 FD 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 FD 00 0A 1A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 16 [17:13:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:13:10]wFMCommunicate OK [17:13:10]wFMCommunicate request_size=4 [17:13:10]MH_SAM_APDU [17:13:10]CAPDU: 80 17 00 00 [17:13:10]Write to MH i2c: E2 08 00 0B 1A 80 17 00 00 00 00 00 00 A5 [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:13:10]Read from MH i2c: E2 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 CB 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 CB 00 0B 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8E [17:13:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:13:10]wFMCommunicate OK [17:13:10]SAM_PROTO_GetShiftData done [17:13:10]requested_item shift.sale.total_cash is exist - process it [17:13:10]requested_item shift.sale_refund.total is exist - process it [17:13:10]requested_item shift.sale_refund.total_cash is exist - process it [17:13:10]requested_item shift.buy.total is exist - process it [17:13:10]requested_item shift.buy.total_cash is exist - process it [17:13:10]produce_requested_data done [17:13:10]produce_requested_data return {"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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} [17:13:10]process_action_free get_value [17:13:10]json_value_free [17:13:10]json_value_free done [17:13:10]process_json_proto returns [17:13:10]Send response to host [17:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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}}} [17:13:10]free response buf [17:13:10]execute_script done [17:13:10]execute_script returns [17:13:10]free content buf [17:13:10]Sock 8.Close socket [17:13:10]Sock 8.Thread stoped [17:13:10]accept exits with 9 [17:13:10]New connection [17:13:10]New thread 3066629476 created [17:13:10]Thread 3066772836 joined [17:13:10]Waiting for new connection... [17:13:10] Sock 9.Parse request [17:13:10]Sock 9.Check first char [17:13:10]Sock 9.First char is OK [17:13:10]request: POST /json_proto HTTP/1.0 [17:13:10]Method: POST [17:13:10]URL: /json_proto [17:13:10]Method is POST - this is cgi request [17:13:10]url: /json_proto [17:13:10]query_string will be loaded in cgi processing [17:13:10]execute_cgi json_proto POST (null) [17:13:10]execute_cgi path=json_proto method=POST [17:13:10]POST find Content-Length [17:13:10]Host: 172.17.56.68:8080 [17:13:10]Content-Length: 331 [17:13:10]Content-Type: application/json [17:13:10] [17:13:10]POST finish read [17:13:10]Found Content-Length = 331 [17:13:10]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" ] } } [17:13:10]execute_script... [17:13:10]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" ] } } [17:13:10]POST & json_proto [17:13:10]process_json_proto [17:13:10]json parsed OK: [17:13:10]protocol is kg_v1.0 [17:13:10]action value=get_value [17:13:10]process_action get_value [17:13:10]cmd_get_value [17:13:10]process_action get_value done [17:13:10]requested_data is exist [17:13:10]produce_requested_data [17:13:10]requested_item fm.sale.total is exist - process it [17:13:10]SAM_PROTO_GetFMData [17:13:10]wFMCommunicate request_size=4 [17:13:10]MH_SAM_APDU [17:13:10]CAPDU: 80 13 03 00 [17:13:10]Write to MH i2c: E2 08 00 0C 1A 80 13 03 00 00 00 00 00 A5 [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:13:10]Read from MH i2c: E2 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 FD 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 FD 00 0C 1A 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 FD [17:13:10]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:13:10]wFMCommunicate OK [17:13:10]wFMCommunicate request_size=4 [17:13:10]MH_SAM_APDU [17:13:10]CAPDU: 80 17 00 00 [17:13:10]Write to MH i2c: E2 08 00 0D 1A 80 17 00 00 00 00 00 00 A7 [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:11]Read from MH i2c: E2 [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: E2 FD 00 [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: E2 FD 00 0D 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [17:13:11]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:13:11]wFMCommunicate OK [17:13:11]wFMCommunicate request_size=4 [17:13:11]MH_SAM_APDU [17:13:11]CAPDU: 80 17 00 00 [17:13:11]Write to MH i2c: E2 08 00 0E 1A 80 17 00 00 00 00 00 00 A8 [17:13:11]Write i2c OK [17:13:11]MH_I2C_Read... [17:13:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:11]Read from MH i2c: E2 [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: E2 FD 00 [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: E2 FD 00 0E 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [17:13:11]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:13:11]wFMCommunicate OK [17:13:11]wFMCommunicate request_size=4 [17:13:11]MH_SAM_APDU [17:13:11]CAPDU: 80 17 00 00 [17:13:11]Write to MH i2c: E2 08 00 0F 1A 80 17 00 00 00 00 00 00 A9 [17:13:11]Write i2c OK [17:13:11]MH_I2C_Read... [17:13:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:12]Read from MH i2c: E2 [17:13:12]MH_I2C_Read... [17:13:12]Read from MH i2c: E2 FD 00 [17:13:12]MH_I2C_Read... [17:13:12]Read from MH i2c: E2 FD 00 0F 1A 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1E [17:13:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [17:13:12]wFMCommunicate OK [17:13:12]wFMCommunicate request_size=4 [17:13:12]MH_SAM_APDU [17:13:12]CAPDU: 80 17 00 00 [17:13:12]Write to MH i2c: E2 08 00 10 1A 80 17 00 00 00 00 00 00 AA [17:13:12]Write i2c OK [17:13:12]MH_I2C_Read... [17:13:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:13:12]Read from MH i2c: E2 [17:13:12]MH_I2C_Read... [17:13:12]Read from MH i2c: E2 D8 00 [17:13:12]MH_I2C_Read... [17:13:12]Read from MH i2c: E2 D8 00 10 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 91 [17:13:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:13:12]wFMCommunicate OK [17:13:12]SAM_PROTO_GetFMData done [17:13:12]requested_item fm.sale_refund.total is exist - process it [17:13:12]requested_item fm.buy.total is exist - process it [17:13:12]requested_item shift.sale.total is exist - process it [17:13:12]SAM_PROTO_GetShiftData [17:13:12]wFMCommunicate request_size=4 [17:13:12]MH_SAM_APDU [17:13:12]CAPDU: 80 13 02 00 [17:13:12]Write to MH i2c: E2 08 00 11 1A 80 13 02 00 00 00 00 00 A9 [17:13:12]Write i2c OK [17:13:12]MH_I2C_Read... [17:13:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:13:13]Read from MH i2c: E2 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 FD 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 FD 00 11 1A 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 20 [17:13:13]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:13:13]wFMCommunicate OK [17:13:13]wFMCommunicate request_size=4 [17:13:13]MH_SAM_APDU [17:13:13]CAPDU: 80 17 00 00 [17:13:13]Write to MH i2c: E2 08 00 12 1A 80 17 00 00 00 00 00 00 AC [17:13:13]Write i2c OK [17:13:13]MH_I2C_Read... [17:13:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:13]Read from MH i2c: E2 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 FD 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 FD 00 12 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 CE [17:13:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:13:13]wFMCommunicate OK [17:13:13]wFMCommunicate request_size=4 [17:13:13]MH_SAM_APDU [17:13:13]CAPDU: 80 17 00 00 [17:13:13]Write to MH i2c: E2 08 00 13 1A 80 17 00 00 00 00 00 00 AD [17:13:13]Write i2c OK [17:13:13]MH_I2C_Read... [17:13:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:13]Read from MH i2c: E2 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 FD 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 FD 00 13 1A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 64 [17:13:14]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:13:14]wFMCommunicate OK [17:13:14]wFMCommunicate request_size=4 [17:13:14]MH_SAM_APDU [17:13:14]CAPDU: 80 17 00 00 [17:13:14]Write to MH i2c: E2 08 00 14 1A 80 17 00 00 00 00 00 00 AE [17:13:14]Write i2c OK [17:13:14]MH_I2C_Read... [17:13:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:14]Read from MH i2c: E2 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 FD 00 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 FD 00 14 1A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 20 [17:13:14]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:13:14]wFMCommunicate OK [17:13:14]wFMCommunicate request_size=4 [17:13:14]MH_SAM_APDU [17:13:14]CAPDU: 80 17 00 00 [17:13:14]Write to MH i2c: E2 08 00 15 1A 80 17 00 00 00 00 00 00 AF [17:13:14]Write i2c OK [17:13:14]MH_I2C_Read... [17:13:14]OFD Sender: No OFD packet to send [17:13:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:13:14]Read from MH i2c: E2 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 CB 00 [17:13:14]MH_I2C_Read... [17:13:14]Read from MH i2c: E2 CB 00 15 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 98 [17:13:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:13:15]wFMCommunicate OK [17:13:15]SAM_PROTO_GetShiftData done [17:13:15]requested_item shift.sale.total_cash is exist - process it [17:13:15]requested_item shift.sale_refund.total is exist - process it [17:13:15]requested_item shift.sale_refund.total_cash is exist - process it [17:13:15]requested_item shift.buy.total is exist - process it [17:13:15]requested_item shift.buy.total_cash is exist - process it [17:13:15]produce_requested_data done [17:13:15]produce_requested_data return {"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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} [17:13:15]process_action_free get_value [17:13:15]json_value_free [17:13:15]json_value_free done [17:13:15]process_json_proto returns [17:13:15]Send response to host [17:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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}}} [17:13:15]free response buf [17:13:15]execute_script done [17:13:15]execute_script returns [17:13:15]free content buf [17:13:15]Sock 9.Close socket [17:13:15]Sock 9.Thread stoped [17:13:15]accept exits with 8 [17:13:15]New connection [17:13:15]New thread 3066772836 created [17:13:15]Thread 3066629476 joined [17:13:15]Waiting for new connection... [17:13:15] Sock 8.Parse request [17:13:15]Sock 8.Check first char [17:13:15]Sock 8.First char is OK [17:13:15]request: POST /json_proto HTTP/1.0 [17:13:15]Method: POST [17:13:15]URL: /json_proto [17:13:15]Method is POST - this is cgi request [17:13:15]url: /json_proto [17:13:15]query_string will be loaded in cgi processing [17:13:15]execute_cgi json_proto POST (null) [17:13:15]execute_cgi path=json_proto method=POST [17:13:15]POST find Content-Length [17:13:15]Host: 172.17.56.68:8080 [17:13:15]Content-Length: 284 [17:13:15]Content-Type: application/json [17:13:15] [17:13:15]POST finish read [17:13:15]Found Content-Length = 284 [17:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:15]execute_script... [17:13:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:15]POST & json_proto [17:13:15]process_json_proto [17:13:15]json parsed OK: [17:13:15]protocol is kg_v1.0 [17:13:15]action value=close_shift [17:13:15]process_action close_shift [17:13:15]cmd_close_shift [17:13:15]MH_GetDate [17:13:15]Write to MH i2c: F0 00 00 16 1A 1F [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: F0 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: F0 09 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: F0 09 00 16 1A 00 31 EE 61 66 3A 8F 60 66 9D [17:13:15]GetLastDocTimeStamp 1717693947 [17:13:15]current date 1717694001 [17:13:15]FM_GetShiftState [17:13:15]SAM_PROTO_GetShiftState [17:13:15]wFMCommunicate request_size=4 [17:13:15]MH_SAM_APDU [17:13:15]CAPDU: 80 13 01 00 [17:13:15]Write to MH i2c: E2 08 00 17 1A 80 13 01 00 00 00 00 00 AE [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:15]Read from MH i2c: E2 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 0E 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 0E 00 17 1A 00 09 00 01 E9 FE 60 66 00 00 00 00 90 00 67 [17:13:15]RAPDU: 09 00 01 E9 FE 60 66 00 00 00 00 90 00 [17:13:15]wFMCommunicate OK [17:13:15]SAM_PROTO_GetShiftState done [17:13:15]FM_GetShiftState done [17:13:15]KKMCreateCloseShiftDocument [17:13:15]Load OK [17:13:15]Malloc new data [17:13:15]MH_GetDate [17:13:15]Write to MH i2c: F0 00 00 18 1A 21 [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: F0 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: F0 09 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: F0 09 00 18 1A 00 31 EE 61 66 3A 8F 60 66 9F [17:13:15]Malloc new data [17:13:15]Malloc new data [17:13:15]Malloc new data [17:13:15]Malloc new data [17:13:15]KKMCreateCloseShiftDocument OK [17:13:15]KKMSetCloseShiftData OK [17:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=79 [17:13:15]tlvbuf is 019D1340 [17:13:15]KKMLoadAndSignCloseShiftData [17:13:15]SAM_PROTO_ProcessDocument [17:13:15]wFMCommunicate request_size=9 [17:13:15]MH_SAM_APDU [17:13:15]CAPDU: 80 15 01 00 04 05 00 4F 00 [17:13:15]Write to MH i2c: E2 0C 00 19 1A 80 15 01 00 04 00 05 00 4F 00 00 00 0E [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [17:13:15]Read from MH i2c: E2 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 03 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 03 00 19 1A 00 90 00 A7 [17:13:15]RAPDU: 90 00 [17:13:15]wFMCommunicate OK [17:13:15]wFMCommunicate request_size=23 [17:13:15]MH_SAM_APDU [17:13:15]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [17:13:15]Write to MH i2c: E2 1A 00 1A 1A 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 [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:13:15]Read from MH i2c: E2 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 03 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 03 00 1A 1A 00 90 00 A8 [17:13:15]RAPDU: 90 00 [17:13:15]wFMCommunicate OK [17:13:15]wFMCommunicate request_size=38 [17:13:15]MH_SAM_APDU [17:13:15]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 [17:13:15]Write to MH i2c: E2 29 00 1B 1A 80 15 02 00 21 00 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 00 00 42 [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 [17:13:15]MH_I2C_Read... [17:13:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:13:15]Read from MH i2c: E2 03 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 03 00 1B 1A 00 90 00 A9 [17:13:15]RAPDU: 90 00 [17:13:15]wFMCommunicate OK [17:13:15]wFMCommunicate request_size=13 [17:13:15]MH_SAM_APDU [17:13:15]CAPDU: 80 15 02 00 08 F4 03 04 00 31 EE 61 66 [17:13:15]Write to MH i2c: E2 10 00 1C 1A 80 15 02 00 08 00 F4 03 04 00 31 EE 61 66 00 00 A7 [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:13:15]Read from MH i2c: E2 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 03 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 03 00 1C 1A 00 90 00 AA [17:13:15]RAPDU: 90 00 [17:13:15]wFMCommunicate OK [17:13:15]wFMCommunicate request_size=25 [17:13:15]MH_SAM_APDU [17:13:15]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 [17:13:15]Write to MH i2c: E2 1C 00 1D 1A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 00 00 1D [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:13:15]Read from MH i2c: E2 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 03 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 03 00 1D 1A 00 90 00 AB [17:13:15]RAPDU: 90 00 [17:13:15]wFMCommunicate OK [17:13:15]wFMCommunicate request_size=4 [17:13:15]MH_SAM_APDU [17:13:15]CAPDU: 80 15 03 00 [17:13:15]Write to MH i2c: E2 08 00 1E 1A 80 15 03 00 00 00 00 00 B9 [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 FD 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 FD 00 1E 1A 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B6 10 00 00 0E 04 04 00 55 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 54 [17:13:16]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B6 10 00 00 0E 04 04 00 55 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:13:16]wFMCommunicate OK [17:13:16]SAM_PROTO_ProcessDocument answer len = 1265 [17:13:16]SAM_PROTO_ProcessDocument remain to read = 1017 [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 17 00 00 [17:13:16]Write to MH i2c: E2 08 00 1F 1A 80 17 00 00 00 00 00 00 B9 [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 FD 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 FD 00 1F 1A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 02 [17:13:16]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 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 90 00 [17:13:16]wFMCommunicate OK [17:13:16]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:13:16]SAM_PROTO_ProcessDocument remain to read = 767 [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 17 00 00 [17:13:16]Write to MH i2c: E2 08 00 20 1A 80 17 00 00 00 00 00 00 BA [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:17]Read from MH i2c: E2 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 FD 00 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 FD 00 20 1A 00 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 90 00 1C [17:13:17]RAPDU: 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 90 00 [17:13:17]wFMCommunicate OK [17:13:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:13:17]SAM_PROTO_ProcessDocument remain to read = 517 [17:13:17]wFMCommunicate request_size=4 [17:13:17]MH_SAM_APDU [17:13:17]CAPDU: 80 17 00 00 [17:13:17]Write to MH i2c: E2 08 00 21 1A 80 17 00 00 00 00 00 00 BB [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:17]Read from MH i2c: E2 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 FD 00 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 FD 00 21 1A 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 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 90 00 45 [17:13:17]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 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 90 00 [17:13:18]wFMCommunicate OK [17:13:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:13:18]SAM_PROTO_ProcessDocument remain to read = 267 [17:13:18]wFMCommunicate request_size=4 [17:13:18]MH_SAM_APDU [17:13:18]CAPDU: 80 17 00 00 [17:13:18]Write to MH i2c: E2 08 00 22 1A 80 17 00 00 00 00 00 00 BC [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:18]Read from MH i2c: E2 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 FD 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 FD 00 22 1A 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 84 [17:13:18]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:13:18]wFMCommunicate OK [17:13:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [17:13:18]SAM_PROTO_ProcessDocument remain to read = 17 [17:13:18]wFMCommunicate request_size=4 [17:13:18]MH_SAM_APDU [17:13:18]CAPDU: 80 17 00 00 [17:13:18]Write to MH i2c: E2 08 00 23 1A 80 17 00 00 00 00 00 00 BD [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [17:13:18]Read from MH i2c: E2 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 14 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 14 00 23 1A 00 01 00 06 F7 03 00 00 35 04 06 00 C9 1F 90 9A A1 30 90 00 E5 [17:13:18]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 C9 1F 90 9A A1 30 90 00 [17:13:18]wFMCommunicate OK [17:13:18]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [17:13:18]SAM_PROTO_ProcessDocument done [17:13:18]1209 (1) - 1.0 - номер версии ФФД [17:13:18]1041 (16) - 0000000000959360 - номер ФМ [17:13:18]1040 (4) - 4278 - номер ФД [17:13:18]1038 (4) - 85 - номер смены [17:13:18]1118 (4) - 52 - количество кассовых чеков за смену [17:13:18]1111 (4) - 54 - общее количество ФД за смену [17:13:18]1194 (1194) - счетчики итогов смены [17:13:18] 1134 (4) - 52 - количество чеков со всеми признаками расчетов [17:13:18] 1129 (155) - счетчики операций «приход» [17:13:18] 1135 (4) - 52 - количество чеков по признаку расчетов [17:13:18] 1201 (3) - 8153.00 - общая итоговая сумма в чеках [17:13:18] 1136 (3) - 6320.00 - итоговая сумма в чеках наличными [17:13:18] 1138 (3) - 1833.00 - итоговая сумма в чеках безналичными [17:13:18] 1024 (122) - суммы налогов [17:13:18] 1006 (9) - суммы НДС [17:13:18] 1010 (1) - 0% - код ставки НДС [17:13:18] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:18] 1006 (12) - суммы НДС [17:13:18] 1010 (1) - 12% - код ставки НДС [17:13:18] 1011 (3) - 865.82 - сумма НДС по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 0% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (11) - суммы НСП [17:13:18] 1014 (1) - 1% - код ставки НСП [17:13:18] 1015 (2) - 72.10 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 2% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 3% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 5% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 0,50% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 1,50% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1130 (141) - счетчики операций «возврат прихода» [17:13:18] 1135 (4) - 0 - количество чеков по признаку расчетов [17:13:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:13:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:13:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:13:18] 1024 (117) - суммы налогов [17:13:18] 1006 (9) - суммы НДС [17:13:18] 1010 (1) - 0% - код ставки НДС [17:13:18] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:18] 1006 (9) - суммы НДС [17:13:18] 1010 (1) - 12% - код ставки НДС [17:13:18] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 0% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 1% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 2% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 3% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 5% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 0,50% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 1,50% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1131 (141) - счетчики операций «расход» [17:13:18] 1135 (4) - 0 - количество чеков по признаку расчетов [17:13:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:13:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:13:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:13:18] 1024 (117) - суммы налогов [17:13:18] 1006 (9) - суммы НДС [17:13:18] 1010 (1) - 0% - код ставки НДС [17:13:18] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:18] 1006 (9) - суммы НДС [17:13:18] 1010 (1) - 12% - код ставки НДС [17:13:18] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 0% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 1% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 2% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 3% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 5% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 0,50% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 1,50% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:18] 1132 (141) - счетчики операций «возврат расхода» [17:13:18] 1135 (4) - 0 - количество чеков по признаку расчетов [17:13:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [17:13:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [17:13:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [17:13:18] 1024 (117) - суммы налогов [17:13:18] 1006 (9) - суммы НДС [17:13:18] 1010 (1) - 0% - код ставки НДС [17:13:18] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:18] 1006 (9) - суммы НДС [17:13:18] 1010 (1) - 12% - код ставки НДС [17:13:18] 1011 (0) - 0.00 - сумма НДС по ставке [17:13:18] 1007 (9) - суммы НСП [17:13:18] 1014 (1) - 0% - код ставки НСП [17:13:18] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:19] 1007 (9) - суммы НСП [17:13:19] 1014 (1) - 1% - код ставки НСП [17:13:19] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:19] 1007 (9) - суммы НСП [17:13:19] 1014 (1) - 2% - код ставки НСП [17:13:19] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:19] 1007 (9) - суммы НСП [17:13:19] 1014 (1) - 3% - код ставки НСП [17:13:19] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:19] 1007 (9) - суммы НСП [17:13:19] 1014 (1) - 5% - код ставки НСП [17:13:19] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:19] 1007 (9) - суммы НСП [17:13:19] 1014 (1) - 0,50% - код ставки НСП [17:13:19] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:19] 1007 (9) - суммы НСП [17:13:19] 1014 (1) - 1,50% - код ставки НСП [17:13:19] 1015 (0) - 0.00 - сумма НСП по ставке [17:13:19] 1133 (588) - - счетчики коррекции - не используются [17:13:19]1077 (6) - 221137407222064 - ФПД [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1209 (04B9) [17:13:19]Malloc new data [17:13:19]Processing tag 1041 (0411) [17:13:19]Processing tag 1040 (0410) [17:13:19]Malloc new data [17:13:19]Processing tag 1038 (040E) [17:13:19]Malloc new data [17:13:19]Processing tag 1118 (045E) [17:13:19]Malloc new data [17:13:19]Processing tag 1111 (0457) [17:13:19]Malloc new data [17:13:19]Processing tag 1194 (04AA) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1134 (046E) [17:13:19]Malloc new data [17:13:19]Processing tag 1129 (0469) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1135 (046F) [17:13:19]Malloc new data [17:13:19]Processing tag 1201 (04B1) [17:13:19]Malloc new data [17:13:19]Processing tag 1136 (0470) [17:13:19]Malloc new data [17:13:19]Processing tag 1138 (0472) [17:13:19]Malloc new data [17:13:19]Processing tag 1024 (0400) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1006 (03EE) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1010 (03F2) [17:13:19]Malloc new data [17:13:19]Processing tag 1011 (03F3) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1006 (03EE) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1010 (03F2) [17:13:19]Malloc new data [17:13:19]Processing tag 1011 (03F3) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]SetTLVBufToDocument err=0 [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1130 (046A) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1135 (046F) [17:13:19]Malloc new data [17:13:19]Processing tag 1201 (04B1) [17:13:19]Malloc new data [17:13:19]Processing tag 1136 (0470) [17:13:19]Malloc new data [17:13:19]Processing tag 1138 (0472) [17:13:19]Malloc new data [17:13:19]Processing tag 1024 (0400) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1006 (03EE) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1010 (03F2) [17:13:19]Malloc new data [17:13:19]Processing tag 1011 (03F3) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1006 (03EE) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1010 (03F2) [17:13:19]Malloc new data [17:13:19]Processing tag 1011 (03F3) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]SetTLVBufToDocument err=0 [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1131 (046B) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1135 (046F) [17:13:19]Malloc new data [17:13:19]Processing tag 1201 (04B1) [17:13:19]Malloc new data [17:13:19]Processing tag 1136 (0470) [17:13:19]Malloc new data [17:13:19]Processing tag 1138 (0472) [17:13:19]Malloc new data [17:13:19]Processing tag 1024 (0400) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1006 (03EE) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1010 (03F2) [17:13:19]Malloc new data [17:13:19]Processing tag 1011 (03F3) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1006 (03EE) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1010 (03F2) [17:13:19]Malloc new data [17:13:19]Processing tag 1011 (03F3) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]SetTLVBufToDocument err=0 [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1132 (046C) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1135 (046F) [17:13:19]Malloc new data [17:13:19]Processing tag 1201 (04B1) [17:13:19]Malloc new data [17:13:19]Processing tag 1136 (0470) [17:13:19]Malloc new data [17:13:19]Processing tag 1138 (0472) [17:13:19]Malloc new data [17:13:19]Processing tag 1024 (0400) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1006 (03EE) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1010 (03F2) [17:13:19]Malloc new data [17:13:19]Processing tag 1011 (03F3) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1006 (03EE) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1010 (03F2) [17:13:19]Malloc new data [17:13:19]Processing tag 1011 (03F3) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1007 (03EF) [17:13:19]Load OK [17:13:19]SetTLVBufToDocument [17:13:19]Processing tag 1014 (03F6) [17:13:19]Malloc new data [17:13:19]Processing tag 1015 (03F7) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]SetTLVBufToDocument err=0 [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1133 (046D) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Processing tag 1077 (0435) [17:13:19]Malloc new data [17:13:19]SetTLVBufToDocument err=0 [17:13:19]Malloc new data [17:13:19]SAM_PROTO_GetFMData [17:13:19]wFMCommunicate request_size=4 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 13 03 00 [17:13:19]Write to MH i2c: E2 08 00 24 1A 80 13 03 00 00 00 00 00 BD [17:13:20]OFD Sender: No OFD packet to send [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:13:20]Read from MH i2c: E2 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 FD 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 FD 00 24 1A 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 15 [17:13:20]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:13:20]wFMCommunicate OK [17:13:20]wFMCommunicate request_size=4 [17:13:20]MH_SAM_APDU [17:13:20]CAPDU: 80 17 00 00 [17:13:20]Write to MH i2c: E2 08 00 25 1A 80 17 00 00 00 00 00 00 BF [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:20]Read from MH i2c: E2 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 FD 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: E2 FD 00 25 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 87 [17:13:21]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:13:21]wFMCommunicate OK [17:13:21]wFMCommunicate request_size=4 [17:13:21]MH_SAM_APDU [17:13:21]CAPDU: 80 17 00 00 [17:13:21]Write to MH i2c: E2 08 00 26 1A 80 17 00 00 00 00 00 00 C0 [17:13:21]Write i2c OK [17:13:21]MH_I2C_Read... [17:13:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:21]Read from MH i2c: E2 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 FD 00 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 FD 00 26 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [17:13:21]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:13:21]wFMCommunicate OK [17:13:21]wFMCommunicate request_size=4 [17:13:21]MH_SAM_APDU [17:13:21]CAPDU: 80 17 00 00 [17:13:21]Write to MH i2c: E2 08 00 27 1A 80 17 00 00 00 00 00 00 C1 [17:13:21]Write i2c OK [17:13:21]MH_I2C_Read... [17:13:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:13:22]Read from MH i2c: E2 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 FD 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 FD 00 27 1A 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 36 [17:13:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [17:13:22]wFMCommunicate OK [17:13:22]wFMCommunicate request_size=4 [17:13:22]MH_SAM_APDU [17:13:22]CAPDU: 80 17 00 00 [17:13:22]Write to MH i2c: E2 08 00 28 1A 80 17 00 00 00 00 00 00 C2 [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:13:22]Read from MH i2c: E2 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 D8 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 D8 00 28 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 A9 [17:13:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:13:22]wFMCommunicate OK [17:13:22]SAM_PROTO_GetFMData done [17:13:22]Malloc new data [17:13:22]Malloc new data [17:13:22]Malloc new data [17:13:22]Malloc new data [17:13:22]KKMLoadAndSignCloseShiftData err=0 [17:13:22]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Барыктабасов Т. 06.06.2024 17:13 Смена: 85 РНМ: 0000000000145775 ЗНМ: 0300000233 СНО: Общий режим Чеков за смену: 52 ФД за смену: 54 Всего чеков: 52 ИТОГИ ПРИХОД Чеков: 52 Общий итог: 8153.00 Итого наличными: 6320.00 Итого безнал.: 1833.00 НДС 0% : 0.00 НДС 12% : 865.82 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 72.10 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 6320.00 НС Приход: 948591.31 НС Возвр.Прихода: 1764.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 4278 ФМ: 0000000000959360 ФПД: 221137407222064 [17:13:22]StoreToDocumentArchive [17:13:22]shift 85 fd 4278 [17:13:22]save to /storage/0085/doc_00004278 [17:13:22]save last doc name /storage/0085/doc_00004278 to /storage/kkm_last_doc_name [17:13:22]save OK [17:13:22]Clear old archive folders... [17:13:22]Remove dir /storage/0010 [17:13:22]opendir ok [17:13:22]file . [17:13:22]file .. [17:13:22]file doc_1717693954 [17:13:22]remove file /storage/0010/doc_1717693954 [17:13:22]remove dir /storage/0010 [17:13:22]NVStorageSaveData kkm_registers [17:13:22]File name is /storage/kkm_registers [17:13:22]Write 24 bytes [17:13:22]NVStorageSaveData done [17:13:22]NVStorageSaveData kkm_registers [17:13:22]File name is /storage/kkm_registers [17:13:22]Write 24 bytes [17:13:22]NVStorageSaveData done [17:13:22]ProcessDocumentItem done err = 0, tmpTLVsize=1387 [17:13:22]tlvbuf is 01AB2D50 [17:13:22]SAM_PROTO_ClearQueue [17:13:22]wFMCommunicate request_size=4 [17:13:22]MH_SAM_APDU [17:13:22]CAPDU: 80 09 00 00 [17:13:22]Write to MH i2c: E2 08 00 29 1A 80 09 00 00 00 00 00 00 B5 [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:22]Read from MH i2c: E2 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 03 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 03 00 29 1A 00 90 00 B7 [17:13:23]RAPDU: 90 00 [17:13:23]wFMCommunicate OK [17:13:23]SAM_PROTO_ClearQueue done [17:13:23]KKMCreateOFDPacket [17:13:23]OFDProtocolAddRootSTLVToBuf [17:13:23]FM_MakeSignedData [17:13:23]FM_MakeSignedData [17:13:23]SAM_PROTO_SignData [17:13:23]wFMCommunicate request_size=4 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 0D 01 02 [17:13:23]Write to MH i2c: E2 08 00 2A 1A 80 0D 01 02 00 00 00 00 BD [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 2A 1A 00 90 00 B8 [17:13:23]RAPDU: 90 00 [17:13:23]wFMCommunicate OK [17:13:23]wFMCommunicate request_size=255 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 0D 02 02 FA 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 31 EE 61 66 0E 04 04 00 55 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 AA 04 D5 04 6E 04 04 00 34 00 00 00 69 04 A2 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 01 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 [17:13:23]Write to MH i2c: E2 02 01 2B 1A 80 0D 02 02 FA 00 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 31 EE 61 66 0E 04 04 00 55 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 AA 04 D5 04 6E 04 04 00 34 00 00 00 69 04 A2 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 01 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 00 81 [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [17:13:23]RAPDU: 90 00 [17:13:23]wFMCommunicate OK [17:13:23]wFMCommunicate request_size=255 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 0D 02 02 FA 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 2A 1C 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 [17:13:23]Write to MH i2c: E2 02 01 2C 1A 80 0D 02 02 FA 00 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 2A 1C 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 00 00 75 [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 2C 1A 00 90 00 BA [17:13:24]RAPDU: 90 00 [17:13:24]wFMCommunicate OK [17:13:24]wFMCommunicate request_size=255 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 0D 02 02 FA 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 [17:13:24]Write to MH i2c: E2 02 01 2D 1A 80 0D 02 02 FA 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 00 85 [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 2D 1A 00 90 00 BB [17:13:24]RAPDU: 90 00 [17:13:24]wFMCommunicate OK [17:13:24]wFMCommunicate request_size=255 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 0D 02 02 FA 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 [17:13:25]Write to MH i2c: E2 02 01 2E 1A 80 0D 02 02 FA 00 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 OFD Sender: No OFD packet to send [17:13:25]04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 7E [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:25]Read from MH i2c: E2 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 03 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: E2 03 00 2E 1A 00 90 00 BC [17:13:25]RAPDU: 90 00 [17:13:25]wFMCommunicate OK [17:13:25]wFMCommunicate request_size=255 [17:13:25]MH_SAM_APDU [17:13:25]CAPDU: 80 0D 02 02 FA 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:13:25]Write to MH i2c: E2 02 01 2F 1A 80 0D 02 02 FA 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 4F [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 2F 1A 00 90 00 BD [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]wFMCommunicate request_size=146 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 0D 02 02 8D 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 35 04 06 00 C9 1F 90 9A A1 30 [17:13:26]Write to MH i2c: E2 95 00 30 1A 80 0D 02 02 8D 00 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 35 04 06 00 C9 1F 90 9A A1 30 00 00 BA [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 03 00 30 1A 00 90 00 BE [17:13:26]RAPDU: 90 00 [17:13:26]wFMCommunicate OK [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 0D 03 02 [17:13:26]Write to MH i2c: E2 08 00 31 1A 80 0D 03 02 00 00 00 00 C6 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0B 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0B 00 31 1A 00 A3 A1 4A EA 67 0C C1 FE 90 00 71 [17:13:26]RAPDU: A3 A1 4A EA 67 0C C1 FE 90 00 [17:13:26]wFMCommunicate OK [17:13:26]SAM_PROTO_SignData done [17:13:26]FM_MakeSignedData done [17:13:26]CreateOFDProtocolMessage [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 11 00 00 [17:13:26]Write to MH i2c: E2 08 00 32 1A 80 11 00 00 00 00 00 00 C6 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:26]Read from MH i2c: E2 17 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 17 00 32 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 19 [17:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [17:13:26]wFMCommunicate OK [17:13:26]CreateOFDProtocolMessage done [17:13:26]OFDSenderStorePacket 4278 [17:13:26]StoreOFDPacket docnum=4278 [17:13:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 7F 05 00 00 C6 E7 77 05 1C 79 5A 05 01 00 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 31 EE 61 66 0E 04 04 00 55 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 AA 04 D5 04 6E 04 04 00 34 00 00 00 69 04 A2 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 01 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 2A 1C 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 B6 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 35 04 06 00 C9 1F 90 9A A1 30 A3 A1 4A EA 67 0C C1 FE [17:13:27]CheckFolder [17:13:27]dirname=/storage/ofd_packets [17:13:27]CheckFolder done [17:13:27]ProducePacketName [17:13:27]name=ofd_packets/00004278 [17:13:27]NVStorageSaveData ofd_packets/00004278 [17:13:27]File name is /storage/ofd_packets/00004278 [17:13:27]Write 1437 bytes [17:13:27]NVStorageSaveData done [17:13:27]OFDSenderStorePacket done [17:13:27]KKMCreateOFDPacket done [17:13:27]NVStorageSaveData kkm_last_timestamp [17:13:27]File name is /storage/kkm_last_timestamp [17:13:27]Write 4 bytes [17:13:27]NVStorageSaveData done [17:13:27]ExternCall_PrintAddStr [17:13:27]wPrintStart [17:13:27]Write to MH i2c: 01 00 00 33 1A 4D [17:13:27]Write i2c OK [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 07 00 [17:13:27]MH_I2C_Read... [17:13:27]Read from MH i2c: 01 07 00 33 1A 00 00 00 00 00 FF 0F 62 [17:13:27]RasterBufferAndPrint [17:13:27]line Отчет о закрытии смены [17:13:27]line ФФД: 1.0 [17:13:27]line ИНН: 02508201610067 [17:13:27]line Кассир: Барыктабасов Т. [17:13:27]line 06.06.2024 17:13 [17:13:27]line Смена: 85 [17:13:27]line РНМ: 0000000000145775 [17:13:27]line ЗНМ: 0300000233 [17:13:27]line СНО: Общий режим [17:13:27]line Чеков за смену: 52 [17:13:27]line ФД за смену: 54 [17:13:27]line Всего чеков: 52 [17:13:27]line ИТОГИ ПРИХОД [17:13:27]line Чеков: 52 [17:13:27]line Общий итог: 8153.00 [17:13:27]line Итого наличными: 6320.00 [17:13:27]line Итого безнал.: 1833.00 [17:13:27]line НДС 0% : 0.00 [17:13:27]line НДС 12% : 865.82 [17:13:27]line НСП 0% : 0.00 [17:13:27]line НСП 1,50% : 0.00 [17:13:27]line НСП 0,50% : 0.00 [17:13:27]line НСП 5% : 0.00 [17:13:27]line НСП 3% : 0.00 [17:13:27]line НСП 2% : 0.00 [17:13:27]line НСП 1% : 72.10 [17:13:27]line ИТОГИ ВОЗВРАТ ПРИХОДА [17:13:27]line Чеков: 0 [17:13:27]line Общий итог: 0.00 [17:13:27]line Итого наличными: 0.00 [17:13:27]line Итого безнал.: 0.00 [17:13:27]line НДС 0% : 0.00 [17:13:27]line НДС 12% : 0.00 [17:13:27]line НСП 0% : 0.00 [17:13:27]line НСП 1,50% : 0.00 [17:13:27]line НСП 0,50% : 0.00 [17:13:27]line НСП 5% : 0.00 [17:13:27]line НСП 3% : 0.00 [17:13:27]line НСП 2% : 0.00 [17:13:27]line НСП 1% : 0.00 [17:13:27]line ИТОГИ РАСХОД [17:13:27]line Чеков: 0 [17:13:27]line Общий итог: 0.00 [17:13:27]line Итого наличными: 0.00 [17:13:27]line Итого безнал.: 0.00 [17:13:27]line НДС 0% : 0.00 [17:13:27]line НДС 12% : 0.00 [17:13:27]line НСП 0% : 0.00 [17:13:27]line НСП 1,50% : 0.00 [17:13:27]line НСП 0,50% : 0.00 [17:13:27]line НСП 5% : 0.00 [17:13:27]line НСП 3% : 0.00 [17:13:27]line НСП 2% : 0.00 [17:13:27]line НСП 1% : 0.00 [17:13:27]line ИТОГИ ВОЗВРАТ РАСХОДА [17:13:27]line Чеков: 0 [17:13:27]line Общий итог: 0.00 [17:13:27]line Итого наличными: 0.00 [17:13:27]line Итого безнал.: 0.00 [17:13:27]line НДС 0% : 0.00 [17:13:27]line НДС 12% : 0.00 [17:13:27]line НСП 0% : 0.00 [17:13:27]line НСП 1,50% : 0.00 [17:13:27]line НСП 0,50% : 0.00 [17:13:27]line НСП 5% : 0.00 [17:13:27]line НСП 3% : 0.00 [17:13:27]line НСП 2% : 0.00 [17:13:27]line НСП 1% : 0.00 [17:13:27]line Сумма внесений: 0.00 [17:13:27]line Сумма выплат: 0.00 [17:13:27]line Нал. в кассе: 6320.00 [17:13:27]line НС Приход: 948591.31 [17:13:27]line НС Возвр.Прихода: 1764.00 [17:13:27]line НС Расход: 0.00 [17:13:27]line НС Возвр.Расхода: 0.00 [17:13:27]line ФД: 4278 [17:13:27]line ФМ: 0000000000959360 [17:13:27]line ФПД: 221137407222064 [17:13:27]OFD Sender: Processing packet 4278 [packets to send 2, broken 1] [17:13:27]ProducePacketName [17:13:27]name=ofd_packets/00004278 [17:13:27]OFD Sender: To server: pG, [17:13:27]CommunicateWithHost lk.salyk.kg:30040 [17:13:27]ConnectInit lk.salyk.kg [17:13:27]written 0, free lines is 4095 [17:13:27]Connected sock=10 [17:13:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 7F 05 00 00 C6 E7 77 05 1C 79 5A 05 01 00 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 31 EE 61 66 0E 04 04 00 55 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 AA 04 D5 04 6E 04 04 00 34 00 00 00 69 04 A2 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 01 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 2A 1C 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 Write to MH i2c: 04 01 00 00 00 00 00 83 04 1A 75 9D 00 [17:13:28]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE Write i2c OK [17:13:28]03 MH_I2C_Read... [17:13:28]09 Read from MH i2c: 00 01 F2 [17:13:28]03 MH_I2C_Read... [17:13:28]01 00 01 Read from MH i2c: F3 01 03 07 00 00 00 [17:13:28]EF MH_I2C_Read... [17:13:28]03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 01 00 07 01 F7 00 03 83 00 1A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 00 09 00 00 00 F6 00 03 52 01 0A 00 00 [17:13:28]03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 RasterBufferAndPrint [17:13:28]00 line [17:13:28]00 line [17:13:28]EF line [17:13:28]03 line [17:13:28]09 line [17:13:28]00 F6 03 01 00 05 F7 03 00 written 0, free lines is 2760 [17:13:28]00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F MH_Cut [17:13:28]04 Write to MH i2c: 04 D1 00 01 00 00 00 8A 00 1A 00 01 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 76 01 [17:13:28]00 00 Write i2c OK [17:13:28]F3 MH_I2C_Read... [17:13:28]03 Read from MH i2c: 00 D1 00 [17:13:28]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 MH_I2C_Read... [17:13:28]00 Read from MH i2c: F6 D1 03 01 01 00 00 [17:13:28]00 MH_I2C_Read... [17:13:28]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 Read from MH i2c: 00 D1 EF 01 03 00 09 8A 00 1A F6 00 03 75 [17:13:28]Write to MH i2c: 01 00 00 8B 1A A5 [17:13:28]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write i2c OK [17:13:28]03 MH_I2C_Read... [17:13:28]09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 35 04 06 00 C9 1F 90 9A A1 30 A3 A1 4A EA 67 0C C1 FE [17:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 4F 00 00 00 8C EF 47 00 8A 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 10 04 04 00 B6 10 00 00 F4 03 04 00 3B 9A 61 66 B6 04 01 00 00 D3 1A 67 17 1A A2 B9 70 [17:13:29]CommunicateWithHost err = 0 [17:13:29]CheckOFDResponse [17:13:29]1017 (14) - 77093643461234 [17:13:29]1041 (16) - 0000000000959360 [17:13:29]1040 (4) - 4278 [17:13:29]1012 (4) - 06.06.2024 11:15 [17:13:29]1206 (1) - 0 [17:13:29]OFD Sender: Remove packet 4278 [17:13:29]ProducePacketName [17:13:29]name=ofd_packets/00004278 [17:13:29]NVStorageDeleteData [17:13:29]*** Cut start [17:13:29]*** Partial cut [17:13:29]*** CUTSNS_PIN = 1 [17:13:29]*** CUTSNS_PIN = 0 [17:13:29]OFD Sender: No OFD packet to send [17:13:29]*** Brake cut motor [17:13:30]Read from MH i2c: 01 [17:13:30]MH_I2C_Read... [17:13:30]*** Stop cut motor [17:13:30]*** Cut end [17:13:30]Read from MH i2c: 01 07 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: 01 07 00 8B 1A 00 00 00 00 00 FF 0F BA [17:13:30]process_action close_shift done [17:13:30]requested_data is exist [17:13:30]produce_requested_data [17:13:30]requested_item fd.num is exist - process it [17:13:30]SAM_PROTO_GetFieldsCounters [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 13 00 00 [17:13:30]Write to MH i2c: E2 08 00 8C 1A 80 13 00 00 00 00 00 00 22 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 62 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 62 00 8C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B6 10 00 00 0E 04 04 00 55 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [17:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B6 10 00 00 0E 04 04 00 55 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:30]wFMCommunicate OK [17:13:30]SAM_PROTO_GetFieldsCounters done [17:13:30]requested_item shift.num is exist - process it [17:13:30]requested_item shift.opened is exist - process it [17:13:30]req_shift_opened [17:13:30]FM_GetShiftState [17:13:30]SAM_PROTO_GetShiftState [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 13 01 00 [17:13:30]Write to MH i2c: E2 08 00 8D 1A 80 13 01 00 00 00 00 00 24 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 8D 1A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2F [17:13:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:13:30]wFMCommunicate OK [17:13:30]SAM_PROTO_GetShiftState done [17:13:30]FM_GetShiftState done [17:13:30]req_shift_opened done [17:13:30]requested_item shift.open_date is exist - process it [17:13:30]req_shift_open_date [17:13:30]FM_GetShiftState [17:13:30]SAM_PROTO_GetShiftState [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 13 01 00 [17:13:30]Write to MH i2c: E2 08 00 8E 1A 80 13 01 00 00 00 00 00 25 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0E 00 8E 1A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 30 [17:13:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:13:30]wFMCommunicate OK [17:13:30]SAM_PROTO_GetShiftState done [17:13:30]FM_GetShiftState done [17:13:30]req_shift_open_date done [17:13:30]produce_requested_data done [17:13:30]produce_requested_data return {"fd.num":4278,"shift.num":85,"shift.opened":0,"shift.open_date":0} [17:13:30]process_action_free close_shift [17:13:30]json_value_free [17:13:30]json_value_free done [17:13:30]process_json_proto returns [17:13:30]Send response to host [17:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":4278,"shift.num":85,"shift.opened":0,"shift.open_date":0}}} [17:13:30]free response buf [17:13:30]execute_script done [17:13:30]execute_script returns [17:13:30]free content buf [17:13:30]Sock 8.Close socket [17:13:30]Sock 8.Thread stoped [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:20]accept exits with 9 [17:18:20]New connection [17:18:20]New thread 3066629476 created [17:18:20]Thread 3066772836 joined [17:18:20]Waiting for new connection... [17:18:20] Sock 9.Parse request [17:18:20]Sock 9.Check first char [17:18:20]Sock 9.First char is OK [17:18:20]request: POST /json_proto HTTP/1.0 [17:18:20]Method: POST [17:18:20]URL: /json_proto [17:18:20]Method is POST - this is cgi request [17:18:20]url: /json_proto [17:18:20]query_string will be loaded in cgi processing [17:18:20]execute_cgi json_proto POST (null) [17:18:20]execute_cgi path=json_proto method=POST [17:18:20]POST find Content-Length [17:18:20]Host: 172.17.56.68:8080 [17:18:20]Content-Length: 215 [17:18:20]Content-Type: application/json [17:18:20] [17:18:20]POST finish read [17:18:20]Found Content-Length = 215 [17:18:20]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" ] } } [17:18:20]execute_script... [17:18:20]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" ] } } [17:18:20]POST & json_proto [17:18:20]process_json_proto [17:18:20]json parsed OK: [17:18:20]protocol is kg_v1.0 [17:18:20]action value=get_value [17:18:20]process_action get_value [17:18:20]cmd_get_value [17:18:20]process_action get_value done [17:18:20]requested_data is exist [17:18:20]produce_requested_data [17:18:20]requested_item kkm.sn is exist - process it [17:18:20]requested_item kkm.ver is exist - process it [17:18:20]requested_item fm.sn is exist - process it [17:18:20]wFMCommunicate request_size=4 [17:18:20]MH_SAM_APDU [17:18:20]CAPDU: 80 11 00 00 [17:18:20]Write to MH i2c: E2 08 00 8F 1A 80 11 00 00 00 00 00 00 23 [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:20]Read from MH i2c: E2 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 17 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 17 00 8F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 76 [17:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 90 00 [17:18:20]wFMCommunicate OK [17:18:20]requested_item fd.num is exist - process it [17:18:20]SAM_PROTO_GetFieldsCounters [17:18:20]wFMCommunicate request_size=4 [17:18:20]MH_SAM_APDU [17:18:20]CAPDU: 80 13 00 00 [17:18:20]Write to MH i2c: E2 08 00 90 1A 80 13 00 00 00 00 00 00 26 [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:20]Read from MH i2c: E2 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 62 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 62 00 90 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B6 10 00 00 0E 04 04 00 55 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [17:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 35 37 37 35 10 04 04 00 B6 10 00 00 0E 04 04 00 55 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:20]wFMCommunicate OK [17:18:20]SAM_PROTO_GetFieldsCounters done [17:18:20]requested_item shift.num is exist - process it [17:18:20]requested_item shift.opened is exist - process it [17:18:20]req_shift_opened [17:18:20]FM_GetShiftState [17:18:20]SAM_PROTO_GetShiftState [17:18:20]wFMCommunicate request_size=4 [17:18:20]MH_SAM_APDU [17:18:20]CAPDU: 80 13 01 00 [17:18:20]Write to MH i2c: E2 08 00 91 1A 80 13 01 00 00 00 00 00 28 [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:20]Read from MH i2c: E2 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 0E 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 0E 00 91 1A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 33 [17:18:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:18:20]wFMCommunicate OK [17:18:20]SAM_PROTO_GetShiftState done [17:18:20]FM_GetShiftState done [17:18:20]req_shift_opened done [17:18:20]requested_item shift.open_date is exist - process it [17:18:20]req_shift_open_date [17:18:20]FM_GetShiftState [17:18:20]SAM_PROTO_GetShiftState [17:18:20]wFMCommunicate request_size=4 [17:18:20]MH_SAM_APDU [17:18:20]CAPDU: 80 13 01 00 [17:18:20]Write to MH i2c: E2 08 00 92 1A 80 13 01 00 00 00 00 00 29 [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:20]Read from MH i2c: E2 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 0E 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 0E 00 92 1A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 34 [17:18:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [17:18:20]wFMCommunicate OK [17:18:20]SAM_PROTO_GetShiftState done [17:18:20]FM_GetShiftState done [17:18:20]req_shift_open_date done [17:18:20]produce_requested_data done [17:18:20]produce_requested_data return {"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4278,"shift.num":85,"shift.opened":0,"shift.open_date":0} [17:18:20]process_action_free get_value [17:18:20]json_value_free [17:18:20]json_value_free done [17:18:20]process_json_proto returns [17:18:20]Send response to host [17:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000233","kkm.ver":"v1.0","fm.sn":"0000000000959360","fd.num":4278,"shift.num":85,"shift.opened":0,"shift.open_date":0}}} [17:18:20]free response buf [17:18:20]execute_script done [17:18:20]execute_script returns [17:18:20]free content buf [17:18:20]Sock 9.Close socket [17:18:20]Sock 9.Thread stoped [17:18:23]accept exits with 8 [17:18:23]New connection [17:18:23]New thread 3066772836 created [17:18:23]Thread 3066629476 joined [17:18:23]Waiting for new connection... [17:18:23] Sock 8.Parse request [17:18:23]Sock 8.Check first char [17:18:23]Sock 8.First char is OK [17:18:23]request: POST /json_proto HTTP/1.0 [17:18:23]Method: POST [17:18:23]URL: /json_proto [17:18:23]Method is POST - this is cgi request [17:18:23]url: /json_proto [17:18:23]query_string will be loaded in cgi processing [17:18:23]execute_cgi json_proto POST (null) [17:18:23]execute_cgi path=json_proto method=POST [17:18:23]POST find Content-Length [17:18:23]Host: 172.17.56.68:8080 [17:18:23]Content-Length: 331 [17:18:23]Content-Type: application/json [17:18:23] [17:18:23]POST finish read [17:18:23]Found Content-Length = 331 [17:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:18:23]execute_script... [17:18:23]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" ] } } [17:18:23]POST & json_proto [17:18:23]process_json_proto [17:18:23]json parsed OK: [17:18:23]protocol is kg_v1.0 [17:18:23]action value=get_value [17:18:23]process_action get_value [17:18:23]cmd_get_value [17:18:23]process_action get_value done [17:18:23]requested_data is exist [17:18:23]produce_requested_data [17:18:23]requested_item fm.sale.total is exist - process it [17:18:23]SAM_PROTO_GetFMData [17:18:23]wFMCommunicate request_size=4 [17:18:23]MH_SAM_APDU [17:18:23]CAPDU: 80 13 03 00 [17:18:23]Write to MH i2c: E2 08 00 93 1A 80 13 03 00 00 00 00 00 2C [17:18:23]Write i2c OK [17:18:23]MH_I2C_Read... [17:18:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:18:24]Read from MH i2c: E2 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 FD 00 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 FD 00 93 1A 00 BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 84 [17:18:24]RAPDU: BB 04 85 04 B7 04 6E 04 04 00 0B 10 00 00 69 04 9E 00 6F 04 04 00 02 10 00 00 B1 04 04 00 7B 6F A7 05 70 04 04 00 64 FB B4 04 72 04 03 00 17 74 F2 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB B4 99 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 CD 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 09 00 00 00 B1 04 03 00 10 B1 02 70 04 03 00 10 B1 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2C 49 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [17:18:24]wFMCommunicate OK [17:18:24]wFMCommunicate request_size=4 [17:18:24]MH_SAM_APDU [17:18:24]CAPDU: 80 17 00 00 [17:18:24]Write to MH i2c: E2 08 00 94 1A 80 17 00 00 00 00 00 00 2E [17:18:24]Write i2c OK [17:18:24]MH_I2C_Read... [17:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:18:24]Read from MH i2c: E2 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 FD 00 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 FD 00 94 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [17:18:24]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 18 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:18:24]wFMCommunicate OK [17:18:24]wFMCommunicate request_size=4 [17:18:24]MH_SAM_APDU [17:18:24]CAPDU: 80 17 00 00 [17:18:24]Write to MH i2c: E2 08 00 95 1A 80 17 00 00 00 00 00 00 2F [17:18:24]Write i2c OK [17:18:24]MH_I2C_Read... [17:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:18:24]Read from MH i2c: E2 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 FD 00 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 FD 00 95 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [17:18:24]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:18:24]wFMCommunicate OK [17:18:24]wFMCommunicate request_size=4 [17:18:24]MH_SAM_APDU [17:18:24]CAPDU: 80 17 00 00 [17:18:24]Write to MH i2c: E2 08 00 96 1A 80 17 00 00 00 00 00 00 30 [17:18:24]Write i2c OK [17:18:24]MH_I2C_Read... [17:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:18:24]Read from MH i2c: E2 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 FD 00 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 FD 00 96 1A 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A5 [17:18:24]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [17:18:24]wFMCommunicate OK [17:18:24]wFMCommunicate request_size=4 [17:18:24]MH_SAM_APDU [17:18:24]CAPDU: 80 17 00 00 [17:18:24]Write to MH i2c: E2 08 00 97 1A 80 17 00 00 00 00 00 00 31 [17:18:24]Write i2c OK [17:18:24]MH_I2C_Read... [17:18:24]OFD Sender: No OFD packet to send [17:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [17:18:25]Read from MH i2c: E2 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 D8 00 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 D8 00 97 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 18 [17:18:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:18:25]wFMCommunicate OK [17:18:25]SAM_PROTO_GetFMData done [17:18:25]requested_item fm.sale_refund.total is exist - process it [17:18:25]requested_item fm.buy.total is exist - process it [17:18:25]requested_item shift.sale.total is exist - process it [17:18:25]SAM_PROTO_GetShiftData [17:18:25]wFMCommunicate request_size=4 [17:18:25]MH_SAM_APDU [17:18:25]CAPDU: 80 13 02 00 [17:18:25]Write to MH i2c: E2 08 00 98 1A 80 13 02 00 00 00 00 00 30 [17:18:25]Write i2c OK [17:18:25]MH_I2C_Read... [17:18:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:18:25]Read from MH i2c: E2 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 FD 00 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 FD 00 98 1A 00 AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 A7 [17:18:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 34 00 00 00 B1 04 03 00 C4 70 0C 70 04 03 00 C0 A4 09 72 04 03 00 04 CC 02 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 36 52 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 2A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:18:25]wFMCommunicate OK [17:18:25]wFMCommunicate request_size=4 [17:18:25]MH_SAM_APDU [17:18:25]CAPDU: 80 17 00 00 [17:18:25]Write to MH i2c: E2 08 00 99 1A 80 17 00 00 00 00 00 00 33 [17:18:25]Write i2c OK [17:18:25]MH_I2C_Read... [17:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:18:25]Read from MH i2c: E2 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 FD 00 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 FD 00 99 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 55 [17:18:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:18:25]wFMCommunicate OK [17:18:25]wFMCommunicate request_size=4 [17:18:25]MH_SAM_APDU [17:18:25]CAPDU: 80 17 00 00 [17:18:25]Write to MH i2c: E2 08 00 9A 1A 80 17 00 00 00 00 00 00 34 [17:18:25]Write i2c OK [17:18:25]MH_I2C_Read... [17:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:18:26]Read from MH i2c: E2 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 FD 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 FD 00 9A 1A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 EB [17:18:26]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:18:26]wFMCommunicate OK [17:18:26]wFMCommunicate request_size=4 [17:18:26]MH_SAM_APDU [17:18:26]CAPDU: 80 17 00 00 [17:18:26]Write to MH i2c: E2 08 00 9B 1A 80 17 00 00 00 00 00 00 35 [17:18:26]Write i2c OK [17:18:26]MH_I2C_Read... [17:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:18:26]Read from MH i2c: E2 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 FD 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 FD 00 9B 1A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 A7 [17:18:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:18:26]wFMCommunicate OK [17:18:26]wFMCommunicate request_size=4 [17:18:26]MH_SAM_APDU [17:18:26]CAPDU: 80 17 00 00 [17:18:26]Write to MH i2c: E2 08 00 9C 1A 80 17 00 00 00 00 00 00 36 [17:18:26]Write i2c OK [17:18:26]MH_I2C_Read... [17:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:18:26]Read from MH i2c: E2 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 CB 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 CB 00 9C 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1F [17:18:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:18:26]wFMCommunicate OK [17:18:26]SAM_PROTO_GetShiftData done [17:18:26]requested_item shift.sale.total_cash is exist - process it [17:18:26]requested_item shift.sale_refund.total is exist - process it [17:18:26]requested_item shift.sale_refund.total_cash is exist - process it [17:18:26]requested_item shift.buy.total is exist - process it [17:18:26]requested_item shift.buy.total_cash is exist - process it [17:18:26]produce_requested_data done [17:18:26]produce_requested_data return {"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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} [17:18:26]process_action_free get_value [17:18:26]json_value_free [17:18:26]json_value_free done [17:18:26]process_json_proto returns [17:18:26]Send response to host [17:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":948591.31,"fm.sale_refund.total":1764.00,"fm.buy.total":0.00,"shift.sale.total":8153.00,"shift.sale.total_cash":6320.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}}} [17:18:26]free response buf [17:18:26]execute_script done [17:18:26]execute_script returns [17:18:26]free content buf [17:18:26]Sock 8.Close socket [17:18:26]Sock 8.Thread stoped [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send